diff --git a/src/CONST/index.ts b/src/CONST/index.ts index 0fd5c8b7a34d..5ab114d8ba6d 100755 --- a/src/CONST/index.ts +++ b/src/CONST/index.ts @@ -875,7 +875,6 @@ const CONST = { NEWDOT_MULTI_SCAN: 'newDotMultiScan', PLAID_COMPANY_CARDS: 'plaidCompanyCards', TRACK_FLOWS: 'trackFlows', - STATIC_AI_TRANSLATIONS: 'staticAITranslations', EUR_BILLING: 'eurBilling', MANUAL_DISTANCE: 'manualDistance', }, diff --git a/src/pages/settings/Preferences/LanguagePage.tsx b/src/pages/settings/Preferences/LanguagePage.tsx index 0105ae690378..31c53a1bfde3 100644 --- a/src/pages/settings/Preferences/LanguagePage.tsx +++ b/src/pages/settings/Preferences/LanguagePage.tsx @@ -5,12 +5,10 @@ import ScreenWrapper from '@components/ScreenWrapper'; import SelectionList from '@components/SelectionList'; import RadioListItem from '@components/SelectionList/RadioListItem'; import useLocalize from '@hooks/useLocalize'; -import usePermissions from '@hooks/usePermissions'; import Navigation from '@libs/Navigation/Navigation'; import {setLocaleAndNavigate} from '@userActions/App'; import type {ListItem} from '@src/components/SelectionList/types'; -import CONST from '@src/CONST'; -import {isFullySupportedLocale, LOCALE_TO_LANGUAGE_STRING, SORTED_LOCALES} from '@src/CONST/LOCALES'; +import {LOCALE_TO_LANGUAGE_STRING, SORTED_LOCALES} from '@src/CONST/LOCALES'; import type Locale from '@src/types/onyx/Locale'; type LanguageEntry = ListItem & { @@ -20,17 +18,15 @@ type LanguageEntry = ListItem & { function LanguagePage() { const {translate, preferredLocale} = useLocalize(); const isOptionSelected = useRef(false); - const {isBetaEnabled} = usePermissions(); const locales = useMemo(() => { - const sortedLocales = isBetaEnabled(CONST.BETAS.STATIC_AI_TRANSLATIONS) ? SORTED_LOCALES : SORTED_LOCALES.filter((locale) => isFullySupportedLocale(locale)); - return sortedLocales.map((locale) => ({ + return SORTED_LOCALES.map((locale) => ({ value: locale, text: LOCALE_TO_LANGUAGE_STRING[locale], keyForList: locale, isSelected: preferredLocale === locale, })); - }, [isBetaEnabled, preferredLocale]); + }, [preferredLocale]); const updateLanguage = (selectedLanguage: LanguageEntry) => { if (isOptionSelected.current) {