@trackunit/i18n-library-translation 1.3.47 → 1.3.50
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/index.cjs.js +1 -4
- package/index.esm.js +1 -4
- package/package.json +3 -3
package/index.cjs.js
CHANGED
|
@@ -135,10 +135,7 @@ const useNamespaceTranslation = (namespace, options) => {
|
|
|
135
135
|
return t(key, arg2, arg3);
|
|
136
136
|
}
|
|
137
137
|
return t(key, arg2);
|
|
138
|
-
},
|
|
139
|
-
//Don't add t as a dependency, it will cause an infinite loop
|
|
140
|
-
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
141
|
-
[i18NextInstance, namespace]);
|
|
138
|
+
}, [i18NextInstance, namespace, captureException, t]);
|
|
142
139
|
// Replace t function with customT
|
|
143
140
|
const updatedUseTranslation = react.useMemo(() => {
|
|
144
141
|
customUseTranslation[0] = customT;
|
package/index.esm.js
CHANGED
|
@@ -133,10 +133,7 @@ const useNamespaceTranslation = (namespace, options) => {
|
|
|
133
133
|
return t(key, arg2, arg3);
|
|
134
134
|
}
|
|
135
135
|
return t(key, arg2);
|
|
136
|
-
},
|
|
137
|
-
//Don't add t as a dependency, it will cause an infinite loop
|
|
138
|
-
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
139
|
-
[i18NextInstance, namespace]);
|
|
136
|
+
}, [i18NextInstance, namespace, captureException, t]);
|
|
140
137
|
// Replace t function with customT
|
|
141
138
|
const updatedUseTranslation = useMemo(() => {
|
|
142
139
|
customUseTranslation[0] = customT;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@trackunit/i18n-library-translation",
|
|
3
|
-
"version": "1.3.
|
|
3
|
+
"version": "1.3.50",
|
|
4
4
|
"repository": "https://github.com/Trackunit/manager",
|
|
5
5
|
"license": "SEE LICENSE IN LICENSE.txt",
|
|
6
6
|
"engines": {
|
|
@@ -13,8 +13,8 @@
|
|
|
13
13
|
"i18next": "21.10.0",
|
|
14
14
|
"i18next-browser-languagedetector": "6.1.8",
|
|
15
15
|
"i18next-resources-to-backend": "^1.1.4",
|
|
16
|
-
"@trackunit/iris-app-api": "1.3.
|
|
17
|
-
"@trackunit/react-core-hooks": "1.3.
|
|
16
|
+
"@trackunit/iris-app-api": "1.3.48",
|
|
17
|
+
"@trackunit/react-core-hooks": "1.3.48"
|
|
18
18
|
},
|
|
19
19
|
"module": "./index.esm.js",
|
|
20
20
|
"main": "./index.cjs.js",
|