@umituz/react-native-localization 3.5.23 → 3.5.25
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
|
@@ -35,9 +35,6 @@ export const useTranslationFunction = () => {
|
|
|
35
35
|
: defaultValueOrOptions || {};
|
|
36
36
|
|
|
37
37
|
if (!ready || !i18n.isInitialized) {
|
|
38
|
-
if (__DEV__) {
|
|
39
|
-
console.log(`[i18n] ⏳ Not ready - Key: "${key}" → Fallback: "${options.defaultValue || key}"`);
|
|
40
|
-
}
|
|
41
38
|
return options.defaultValue || key;
|
|
42
39
|
}
|
|
43
40
|
|
|
@@ -1,11 +1,9 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { View, Text, Pressable, StyleSheet, type ViewStyle } from 'react-native';
|
|
3
3
|
// @ts-ignore - Optional peer dependency
|
|
4
|
-
import { Feather } from '@expo/vector-icons';
|
|
5
|
-
// @ts-ignore - Optional peer dependency
|
|
6
4
|
import { useNavigation } from '@react-navigation/native';
|
|
7
5
|
// @ts-ignore - Optional peer dependency
|
|
8
|
-
import { useAppDesignTokens } from '@umituz/react-native-design-system';
|
|
6
|
+
import { useAppDesignTokens, AtomicIcon } from '@umituz/react-native-design-system';
|
|
9
7
|
import { useLocalization } from '../../infrastructure/hooks/useLocalization';
|
|
10
8
|
import { getLanguageByCode } from '../../infrastructure/config/languages';
|
|
11
9
|
|
|
@@ -67,7 +65,7 @@ export const LanguageSection: React.FC<LanguageSectionProps> = ({
|
|
|
67
65
|
{ backgroundColor: `${colors.primary}15` },
|
|
68
66
|
]}
|
|
69
67
|
>
|
|
70
|
-
<
|
|
68
|
+
<AtomicIcon name="globe-outline" customSize={24} customColor={colors.primary} />
|
|
71
69
|
</View>
|
|
72
70
|
<View style={styles.textContainer}>
|
|
73
71
|
<Text style={[styles.title, { color: colors.textPrimary }]}>{title}</Text>
|
|
@@ -75,7 +73,7 @@ export const LanguageSection: React.FC<LanguageSectionProps> = ({
|
|
|
75
73
|
{languageDisplay}
|
|
76
74
|
</Text>
|
|
77
75
|
</View>
|
|
78
|
-
<
|
|
76
|
+
<AtomicIcon name="chevron-forward-outline" customSize={20} customColor={colors.textSecondary} />
|
|
79
77
|
</View>
|
|
80
78
|
</Pressable>
|
|
81
79
|
</View>
|