@umituz/react-native-localization 3.5.64 → 3.6.0
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
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@umituz/react-native-localization",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.6.0",
|
|
4
4
|
"description": "Generic localization system for React Native apps with i18n support",
|
|
5
5
|
"main": "./src/index.ts",
|
|
6
6
|
"types": "./src/index.ts",
|
|
@@ -36,26 +36,26 @@
|
|
|
36
36
|
},
|
|
37
37
|
"devDependencies": {
|
|
38
38
|
"@react-native-async-storage/async-storage": "~2.1.2",
|
|
39
|
+
"@react-navigation/bottom-tabs": "latest",
|
|
40
|
+
"@react-navigation/native": "latest",
|
|
41
|
+
"@react-navigation/stack": "latest",
|
|
39
42
|
"@types/react": "~19.1.10",
|
|
43
|
+
"@umituz/react-native-design-system": "^2.8.44",
|
|
44
|
+
"expo-application": "^5.0.0",
|
|
45
|
+
"expo-clipboard": "^8.0.0",
|
|
46
|
+
"expo-device": "^5.0.0",
|
|
47
|
+
"expo-file-system": "^17.0.0",
|
|
48
|
+
"expo-font": "^12.0.0",
|
|
40
49
|
"expo-localization": "~16.0.1",
|
|
50
|
+
"expo-sharing": "^12.0.0",
|
|
41
51
|
"i18next": "^24.2.0",
|
|
42
52
|
"react": "19.1.0",
|
|
43
53
|
"react-i18next": "^15.2.0",
|
|
44
54
|
"react-native": "0.81.5",
|
|
45
|
-
"typescript": "~5.9.2",
|
|
46
|
-
"zustand": "^5.0.0",
|
|
47
|
-
"@umituz/react-native-design-system": "latest",
|
|
48
|
-
"expo-clipboard": "^8.0.0",
|
|
49
|
-
"expo-sharing": "^12.0.0",
|
|
50
|
-
"expo-application": "^5.0.0",
|
|
51
|
-
"expo-device": "^5.0.0",
|
|
52
|
-
"react-native-safe-area-context": "latest",
|
|
53
|
-
"@react-navigation/native": "latest",
|
|
54
|
-
"@react-navigation/stack": "latest",
|
|
55
|
-
"@react-navigation/bottom-tabs": "latest",
|
|
56
55
|
"react-native-gesture-handler": "latest",
|
|
57
|
-
"
|
|
58
|
-
"
|
|
56
|
+
"react-native-safe-area-context": "latest",
|
|
57
|
+
"typescript": "~5.9.2",
|
|
58
|
+
"zustand": "^5.0.0"
|
|
59
59
|
},
|
|
60
60
|
"publishConfig": {
|
|
61
61
|
"access": "public"
|
|
@@ -5,7 +5,7 @@ import {
|
|
|
5
5
|
useAppDesignTokens,
|
|
6
6
|
AtomicText,
|
|
7
7
|
ListItem,
|
|
8
|
-
|
|
8
|
+
AppNavigation,
|
|
9
9
|
} from '@umituz/react-native-design-system';
|
|
10
10
|
import { useLocalization } from '../../infrastructure/hooks/useLocalization';
|
|
11
11
|
import { getLanguageByCode } from '../../infrastructure/config/languages';
|
|
@@ -28,7 +28,6 @@ export const LanguageSection: React.FC<LanguageSectionProps> = ({
|
|
|
28
28
|
containerStyle,
|
|
29
29
|
sectionTitle,
|
|
30
30
|
}) => {
|
|
31
|
-
const navigation = useAppNavigation();
|
|
32
31
|
const tokens = useAppDesignTokens();
|
|
33
32
|
const { t, currentLanguage } = useLocalization();
|
|
34
33
|
|
|
@@ -43,7 +42,7 @@ export const LanguageSection: React.FC<LanguageSectionProps> = ({
|
|
|
43
42
|
: defaultLanguageDisplay;
|
|
44
43
|
|
|
45
44
|
const handlePress = () => {
|
|
46
|
-
|
|
45
|
+
AppNavigation.navigate(route as never);
|
|
47
46
|
};
|
|
48
47
|
|
|
49
48
|
return (
|
|
@@ -6,12 +6,12 @@
|
|
|
6
6
|
import React from 'react';
|
|
7
7
|
import { FlatList } from 'react-native';
|
|
8
8
|
// @ts-ignore - Optional peer dependency
|
|
9
|
-
import {
|
|
10
|
-
useAppDesignTokens,
|
|
11
|
-
SearchBar,
|
|
9
|
+
import {
|
|
10
|
+
useAppDesignTokens,
|
|
11
|
+
SearchBar,
|
|
12
12
|
ScreenLayout,
|
|
13
13
|
NavigationHeader,
|
|
14
|
-
|
|
14
|
+
AppNavigation,
|
|
15
15
|
} from '@umituz/react-native-design-system';
|
|
16
16
|
import { useLanguageSelection } from '../../infrastructure/hooks/useLanguageSelection';
|
|
17
17
|
import { LanguageItem } from '../components/LanguageItem';
|
|
@@ -28,7 +28,6 @@ export const LanguageSelectionScreen: React.FC<LanguageSelectionScreenProps> = (
|
|
|
28
28
|
searchPlaceholder = "settings.languageSelection.searchPlaceholder",
|
|
29
29
|
testID = 'language-selection-screen',
|
|
30
30
|
}) => {
|
|
31
|
-
const navigation = useAppNavigation();
|
|
32
31
|
const tokens = useAppDesignTokens();
|
|
33
32
|
const {
|
|
34
33
|
searchQuery,
|
|
@@ -39,7 +38,7 @@ export const LanguageSelectionScreen: React.FC<LanguageSelectionScreenProps> = (
|
|
|
39
38
|
} = useLanguageSelection();
|
|
40
39
|
|
|
41
40
|
const onSelect = (code: string) => {
|
|
42
|
-
handleLanguageSelect(code, () =>
|
|
41
|
+
handleLanguageSelect(code, () => AppNavigation.goBack());
|
|
43
42
|
};
|
|
44
43
|
|
|
45
44
|
const renderItem = ({ item }: { item: Language }) => {
|
|
@@ -82,7 +81,7 @@ export const LanguageSelectionScreen: React.FC<LanguageSelectionScreenProps> = (
|
|
|
82
81
|
if (onBackPress) {
|
|
83
82
|
onBackPress();
|
|
84
83
|
} else {
|
|
85
|
-
|
|
84
|
+
AppNavigation.goBack();
|
|
86
85
|
}
|
|
87
86
|
};
|
|
88
87
|
|