You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
i'm trying to update my language using Language.setLanguage("ar") but the language is not change
What I'm trying to do :
//return 1 for English Lang or 2 for Arabic Lang
` let selectedLang =await AsyncStoregApp.getDate(CONSTANT.AsyncStorageKey.Lang,);
if (selectedLang === 2) {
LANGUAGES.setLanguage('ar');
I18nManager.allowRTL(true);
I18nManager.forceRTL(true);
} else {
LANGUAGES.setLanguage('en');
I18nManager.allowRTL(false);
I18nManager.forceRTL(false);
}
i'm trying to update my language using Language.setLanguage("ar") but the language is not change
What I'm trying to do :
//return 1 for English Lang or 2 for Arabic Lang
` let selectedLang =await AsyncStoregApp.getDate(CONSTANT.AsyncStorageKey.Lang,);
if (selectedLang === 2) {
LANGUAGES.setLanguage('ar');
I18nManager.allowRTL(true);
I18nManager.forceRTL(true);
} else {
LANGUAGES.setLanguage('en');
I18nManager.allowRTL(false);
I18nManager.forceRTL(false);
}
packege.json
"dependencies": {
"@react-native-async-storage/async-storage": "^1.17.12",
"react": "18.2.0",
"react-native": "0.71.4",
The text was updated successfully, but these errors were encountered: