@umituz/react-native-localization 3.5.19 → 3.5.20
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -20,7 +20,9 @@ export const getDefaultLanguage = (): Language => {
|
|
|
20
20
|
const langs = languageRegistry.getLanguages();
|
|
21
21
|
const firstLang = langs[0];
|
|
22
22
|
if (firstLang) return firstLang;
|
|
23
|
-
|
|
23
|
+
|
|
24
|
+
// Final fallback to system defaults if registry is empty
|
|
25
|
+
return languageRegistry.getDefaultLanguage();
|
|
24
26
|
};
|
|
25
27
|
|
|
26
28
|
export const searchLanguages = (query: string): Language[] => {
|
|
@@ -36,7 +36,7 @@ export const LanguageSection: React.FC<LanguageSectionProps> = ({
|
|
|
36
36
|
const route = config?.route || 'LanguageSelection';
|
|
37
37
|
const title = config?.title || t('settings.languageSelection.title') || 'Language';
|
|
38
38
|
const displaySectionTitle = sectionTitle || title;
|
|
39
|
-
const
|
|
39
|
+
const _description = config?.description || '';
|
|
40
40
|
|
|
41
41
|
const currentLang = getLanguageByCode(currentLanguage);
|
|
42
42
|
const defaultLanguageDisplay = config?.defaultLanguageDisplay || 'English';
|