Skip to content

Commit

Permalink
chore: disable unsupported langs (#2052)
Browse files Browse the repository at this point in the history
  • Loading branch information
devkudasov committed Sep 17, 2024
1 parent b6bafed commit af1ed29
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 5 deletions.
4 changes: 2 additions & 2 deletions src/i18n.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1061,9 +1061,9 @@ export function getText(key: I18N, params?: Record<string, string>): string {

export const supportedTranslationsMap: {[key in AppLanguage]: NodeRequire} = {
en: require('../assets/locales/en/en.json'),
ar: require('../assets/locales/ar/ar.json'),
ru: require('../assets/locales/ru/ru.json'),
tr: require('../assets/locales/tr/tr.json'),
// ar: require('../assets/locales/ar/ar.json'),
// ru: require('../assets/locales/ru/ru.json'),
};

/**
Expand Down
4 changes: 2 additions & 2 deletions src/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -753,8 +753,8 @@ export type FontT = TextStyle | ViewStyle | ImageStyle | undefined;
export enum AppLanguage {
en = 'en',
tr = 'tr',
ru = 'ru',
ar = 'ar',
// ar = 'ar',
// ru = 'ru',
}

export enum AppTheme {
Expand Down
4 changes: 3 additions & 1 deletion src/variables/common.ts
Original file line number Diff line number Diff line change
Expand Up @@ -339,4 +339,6 @@ export const SUPPORTED_UR_TYPE = {

export const KEYSTONE_NAME = 'Keystone';

export const RTL_LANGUAGES = [AppLanguage.ar];
export const RTL_LANGUAGES: AppLanguage[] = [
// AppLanguage.ar
];

0 comments on commit af1ed29

Please sign in to comment.