@umituz/react-native-localization 3.5.16 → 3.5.17
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.5.
|
|
3
|
+
"version": "3.5.17",
|
|
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",
|
|
@@ -96,4 +96,4 @@
|
|
|
96
96
|
"README.md",
|
|
97
97
|
"LICENSE"
|
|
98
98
|
]
|
|
99
|
-
}
|
|
99
|
+
}
|
|
@@ -90,13 +90,9 @@ export const useTranslationFunction = () => {
|
|
|
90
90
|
}
|
|
91
91
|
}
|
|
92
92
|
|
|
93
|
-
// Development mode logging
|
|
94
|
-
if (__DEV__) {
|
|
95
|
-
|
|
96
|
-
console.log(`[i18n] ✅ Found - Key: "${usedKey}" → "${finalResult}"`);
|
|
97
|
-
} else {
|
|
98
|
-
console.warn(`[i18n] ⚠️ Missing - Key: "${usedKey}" → Fallback: "${finalResult}"`);
|
|
99
|
-
}
|
|
93
|
+
// Development mode logging - only log missing translations
|
|
94
|
+
if (__DEV__ && !translationFound) {
|
|
95
|
+
console.warn(`[i18n] ⚠️ Missing - Key: "${usedKey}" → Fallback: "${finalResult}"`);
|
|
100
96
|
}
|
|
101
97
|
|
|
102
98
|
return finalResult;
|