mirror of
https://github.com/balzack/databag.git
synced 2025-02-12 03:29:16 +00:00
fixing unit test
This commit is contained in:
parent
602acde3f3
commit
7e2ec8a6cc
@ -900,9 +900,9 @@ const Strings = [
|
|||||||
];
|
];
|
||||||
|
|
||||||
export function getLanguageStrings() {
|
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') {
|
if (lang === 'en') {
|
||||||
return Strings[0];
|
return Strings[0];
|
||||||
|
Loading…
Reference in New Issue
Block a user