mirror of
https://github.com/balzack/databag.git
synced 2025-02-11 19:19:16 +00:00
fixing unit test
This commit is contained in:
parent
602acde3f3
commit
7e2ec8a6cc
@ -900,9 +900,9 @@ const Strings = [
|
||||
];
|
||||
|
||||
export function getLanguageStrings() {
|
||||
const locale = Platform.OS === 'ios' ? NativeModules.SettingsManager.settings.AppleLocale || NativeModules.SettingsManager.settings.AppleLanguages[0] : NativeModules.I18nManager.localeIdentifier;
|
||||
const locale = Platform.OS === 'ios' ? NativeModules.SettingsManager?.settings.AppleLocale || NativeModules.SettingsManager?.settings.AppleLanguages[0] : NativeModules.I18nManager?.localeIdentifier;
|
||||
|
||||
const lang = locale.slice(0, 2) || '';
|
||||
const lang = locale?.slice(0, 2) || '';
|
||||
|
||||
if (lang === 'en') {
|
||||
return Strings[0];
|
||||
|
Loading…
Reference in New Issue
Block a user