@deriv-com/translations 1.4.0 → 1.4.2

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.
Files changed (42) hide show
  1. package/dist/chunk-DeC0fbbY.js +23 -0
  2. package/dist/components/index.js +2 -4
  3. package/dist/components/localize.js +2 -386
  4. package/dist/hooks/index.js +2 -4
  5. package/dist/hooks/use-translations.js +22 -20
  6. package/dist/i18next-DzZwHOzH.js +1202 -0
  7. package/dist/index.js +9 -16
  8. package/dist/initReactI18next-AIGy7ACI.js +52 -0
  9. package/dist/jsx-runtime-BJITdUlL.js +193 -0
  10. package/dist/localize-CZ6EZTCG.js +366 -0
  11. package/dist/provider/index.js +2 -5
  12. package/dist/provider/translation-provider.js +2 -47
  13. package/dist/{components → src/components}/localize.d.ts +2 -1
  14. package/dist/src/index.d.ts +4 -0
  15. package/dist/{provider → src/provider}/translation-provider.d.ts +1 -1
  16. package/dist/{utils → src/utils}/lang-utils.d.ts +1 -1
  17. package/dist/translation-provider-DouO5SpQ.js +34 -0
  18. package/dist/useTranslation-Ws-GUPE_.js +221 -0
  19. package/dist/utils/constants.js +34 -6
  20. package/dist/utils/index.js +5 -14
  21. package/dist/utils/initialize-i18n.js +2 -34
  22. package/dist/utils/lang-utils.js +2 -31
  23. package/dist/utils/localize.js +48 -9
  24. package/dist/utils/otasdk.js +19 -20
  25. package/dist/utils-17GMfKvo.js +50 -0
  26. package/package.json +28 -28
  27. package/dist/constants-HKuDWVkt.js +0 -37
  28. package/dist/crc32-BeCcwohL.js +0 -1556
  29. package/dist/i18nInstance-D3STmr24.js +0 -55
  30. package/dist/index.d.ts +0 -4
  31. package/dist/jsx-runtime-oIKL5WiM.js +0 -634
  32. package/dist/useTranslation-CZfO55Z-.js +0 -129
  33. /package/dist/{components → src/components}/index.d.ts +0 -0
  34. /package/dist/{hooks → src/hooks}/index.d.ts +0 -0
  35. /package/dist/{hooks → src/hooks}/use-translations.d.ts +0 -0
  36. /package/dist/{provider → src/provider}/index.d.ts +0 -0
  37. /package/dist/{utils → src/utils}/__tests__/lang-utils.spec.d.ts +0 -0
  38. /package/dist/{utils → src/utils}/constants.d.ts +0 -0
  39. /package/dist/{utils → src/utils}/index.d.ts +0 -0
  40. /package/dist/{utils → src/utils}/initialize-i18n.d.ts +0 -0
  41. /package/dist/{utils → src/utils}/localize.d.ts +0 -0
  42. /package/dist/{utils → src/utils}/otasdk.d.ts +0 -0
package/package.json CHANGED
@@ -10,7 +10,7 @@
10
10
  "deriv-extract-translations": "./dist/deriv-extract-translations.cjs"
11
11
  },
12
12
  "private": false,
13
- "version": "1.4.0",
13
+ "version": "1.4.2",
14
14
  "scripts": {
15
15
  "dev": "vite",
16
16
  "build": "tsc && vite build && cp ./src/scripts/deriv-extract-translations.cjs ./dist/deriv-extract-translations.cjs",
@@ -23,40 +23,40 @@
23
23
  "react-dom": "^17.x || ^18.x"
24
24
  },
25
25
  "devDependencies": {
26
- "@babel/core": "^7.23.7",
26
+ "@babel/core": "^7.29.0",
27
27
  "@semantic-release/changelog": "^6.0.3",
28
- "@semantic-release/commit-analyzer": "^12.0.0",
29
- "@semantic-release/github": "^10.0.2",
30
- "@semantic-release/release-notes-generator": "^13.0.0",
31
- "@testing-library/jest-dom": "^6.4.2",
32
- "@testing-library/react": "^14.2.1",
33
- "@testing-library/user-event": "^14.5.2",
34
- "@types/react": "^18.2.43",
35
- "@types/react-dom": "^18.2.17",
36
- "@typescript-eslint/eslint-plugin": "^6.14.0",
37
- "@typescript-eslint/parser": "^6.14.0",
38
- "@vitejs/plugin-react": "^4.2.1",
39
- "eslint": "^8.55.0",
40
- "eslint-plugin-react-hooks": "^4.6.0",
41
- "eslint-plugin-react-refresh": "^0.4.5",
42
- "i18next": "^23.7.18",
28
+ "@semantic-release/commit-analyzer": "^13.0.1",
29
+ "@semantic-release/github": "^12.0.6",
30
+ "@semantic-release/release-notes-generator": "^14.1.0",
31
+ "@testing-library/jest-dom": "^6.9.1",
32
+ "@testing-library/react": "^16.3.2",
33
+ "@testing-library/user-event": "^14.6.1",
34
+ "@types/react": "^19.2.14",
35
+ "@types/react-dom": "^19.2.3",
36
+ "@typescript-eslint/eslint-plugin": "^8.58.0",
37
+ "@typescript-eslint/parser": "^8.58.0",
38
+ "@vitejs/plugin-react": "^6.0.1",
39
+ "eslint": "^9.39.4",
40
+ "eslint-plugin-react-hooks": "^7.0.1",
41
+ "eslint-plugin-react-refresh": "^0.5.2",
42
+ "i18next": "^26.0.3",
43
43
  "jsdom": "^24.0.0",
44
- "react": "^18.2.0",
45
- "react-dom": "^18.2.0",
46
- "react-i18next": "^14.0.1",
47
- "semantic-release": "^23.0.6",
48
- "typescript": "^5.2.2",
49
- "vite": "^7.0.5",
44
+ "react": "^19.2.4",
45
+ "react-dom": "^19.2.4",
46
+ "react-i18next": "^17.0.2",
47
+ "semantic-release": "^25.0.3",
48
+ "typescript": "^6.0.2",
49
+ "vite": "^8.0.4",
50
50
  "vite-plugin-dts": "^4.5.4",
51
- "vitest": "^3.2.4"
51
+ "vitest": "^4.1.2"
52
52
  },
53
53
  "optionalDependencies": {
54
- "@rollup/rollup-linux-x64-gnu": "^4.17.1"
54
+ "@rollup/rollup-linux-x64-gnu": "^4.60.1"
55
55
  },
56
56
  "dependencies": {
57
- "@xmldom/xmldom": "^0.8.10",
58
- "commander": "^12.0.0",
57
+ "@xmldom/xmldom": "^0.9.9",
58
+ "commander": "^14.0.3",
59
59
  "crc-32": "^1.2.2",
60
- "glob": "^10.3.12"
60
+ "glob": "^13.0.6"
61
61
  }
62
62
  }
@@ -1,37 +0,0 @@
1
- const e = Object.freeze({
2
- ACH: "Translations",
3
- EN: "English",
4
- AR: "العربية",
5
- BN: "বাংলা",
6
- DE: "Deutsch",
7
- ES: "Español",
8
- FR: "Français",
9
- ID: "Indonesian",
10
- IT: "Italiano",
11
- SW: "Kiswahili",
12
- TA: "தமிழ்",
13
- KM: "ខ្មែរ",
14
- KO: "한국어",
15
- MN: "Монгол",
16
- PL: "Polish",
17
- PT: "Português",
18
- RU: "Русский",
19
- SI: "සිංහල",
20
- TH: "ไทย",
21
- TR: "Türkçe",
22
- UZ: "O'zbek",
23
- VI: "Tiếng Việt",
24
- ZH_CN: "简体中文",
25
- ZH_TW: "繁體中文"
26
- }), n = "i18n_language", s = "EN", t = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
27
- __proto__: null,
28
- ALL_LANGUAGES: e,
29
- DEFAULT_LANGUAGE: s,
30
- LANGUAGE_KEY: n
31
- }, Symbol.toStringTag, { value: "Module" }));
32
- export {
33
- e as A,
34
- s as D,
35
- n as L,
36
- t as c
37
- };