@trackunit/i18n-library-translation 2.0.9 → 2.0.10

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 CHANGED
@@ -56,6 +56,8 @@ const initializeTranslationsForApp = () => {
56
56
  // Get selected language from url or fallback to english
57
57
  const queryString = window.location.search;
58
58
  const urlParams = new URLSearchParams(queryString);
59
+ // TODO: migrate to useLocalStorage hook — this file was exempted when the no-direct-storage-access rule was introduced
60
+ // eslint-disable-next-line no-restricted-globals
59
61
  const savedLanguage = localStorage.getItem(LANG_STORAGE_KEY);
60
62
  const i18nextLanguage = i18next.language;
61
63
  const defaultLanguage = navigator.language;
package/index.esm.js CHANGED
@@ -54,6 +54,8 @@ const initializeTranslationsForApp = () => {
54
54
  // Get selected language from url or fallback to english
55
55
  const queryString = window.location.search;
56
56
  const urlParams = new URLSearchParams(queryString);
57
+ // TODO: migrate to useLocalStorage hook — this file was exempted when the no-direct-storage-access rule was introduced
58
+ // eslint-disable-next-line no-restricted-globals
57
59
  const savedLanguage = localStorage.getItem(LANG_STORAGE_KEY);
58
60
  const i18nextLanguage = i18next.language;
59
61
  const defaultLanguage = navigator.language;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@trackunit/i18n-library-translation",
3
- "version": "2.0.9",
3
+ "version": "2.0.10",
4
4
  "repository": "https://github.com/Trackunit/manager",
5
5
  "license": "SEE LICENSE IN LICENSE.txt",
6
6
  "engines": {
@@ -11,8 +11,8 @@
11
11
  "i18next": "25.1.2",
12
12
  "i18next-browser-languagedetector": "8.1.0",
13
13
  "i18next-resources-to-backend": "^1.2.1",
14
- "@trackunit/iris-app-api": "2.0.9",
15
- "@trackunit/react-core-hooks": "1.17.21"
14
+ "@trackunit/iris-app-api": "2.0.10",
15
+ "@trackunit/react-core-hooks": "1.17.22"
16
16
  },
17
17
  "peerDependencies": {
18
18
  "react": "^19.0.0"