@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.
- package/dist/chunk-DeC0fbbY.js +23 -0
- package/dist/components/index.js +2 -4
- package/dist/components/localize.js +2 -386
- package/dist/hooks/index.js +2 -4
- package/dist/hooks/use-translations.js +22 -20
- package/dist/i18next-DzZwHOzH.js +1202 -0
- package/dist/index.js +9 -16
- package/dist/initReactI18next-AIGy7ACI.js +52 -0
- package/dist/jsx-runtime-BJITdUlL.js +193 -0
- package/dist/localize-CZ6EZTCG.js +366 -0
- package/dist/provider/index.js +2 -5
- package/dist/provider/translation-provider.js +2 -47
- package/dist/{components → src/components}/localize.d.ts +2 -1
- package/dist/src/index.d.ts +4 -0
- package/dist/{provider → src/provider}/translation-provider.d.ts +1 -1
- package/dist/{utils → src/utils}/lang-utils.d.ts +1 -1
- package/dist/translation-provider-DouO5SpQ.js +34 -0
- package/dist/useTranslation-Ws-GUPE_.js +221 -0
- package/dist/utils/constants.js +34 -6
- package/dist/utils/index.js +5 -14
- package/dist/utils/initialize-i18n.js +2 -34
- package/dist/utils/lang-utils.js +2 -31
- package/dist/utils/localize.js +48 -9
- package/dist/utils/otasdk.js +19 -20
- package/dist/utils-17GMfKvo.js +50 -0
- package/package.json +28 -28
- package/dist/constants-HKuDWVkt.js +0 -37
- package/dist/crc32-BeCcwohL.js +0 -1556
- package/dist/i18nInstance-D3STmr24.js +0 -55
- package/dist/index.d.ts +0 -4
- package/dist/jsx-runtime-oIKL5WiM.js +0 -634
- package/dist/useTranslation-CZfO55Z-.js +0 -129
- /package/dist/{components → src/components}/index.d.ts +0 -0
- /package/dist/{hooks → src/hooks}/index.d.ts +0 -0
- /package/dist/{hooks → src/hooks}/use-translations.d.ts +0 -0
- /package/dist/{provider → src/provider}/index.d.ts +0 -0
- /package/dist/{utils → src/utils}/__tests__/lang-utils.spec.d.ts +0 -0
- /package/dist/{utils → src/utils}/constants.d.ts +0 -0
- /package/dist/{utils → src/utils}/index.d.ts +0 -0
- /package/dist/{utils → src/utils}/initialize-i18n.d.ts +0 -0
- /package/dist/{utils → src/utils}/localize.d.ts +0 -0
- /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.
|
|
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.
|
|
26
|
+
"@babel/core": "^7.29.0",
|
|
27
27
|
"@semantic-release/changelog": "^6.0.3",
|
|
28
|
-
"@semantic-release/commit-analyzer": "^
|
|
29
|
-
"@semantic-release/github": "^
|
|
30
|
-
"@semantic-release/release-notes-generator": "^
|
|
31
|
-
"@testing-library/jest-dom": "^6.
|
|
32
|
-
"@testing-library/react": "^
|
|
33
|
-
"@testing-library/user-event": "^14.
|
|
34
|
-
"@types/react": "^
|
|
35
|
-
"@types/react-dom": "^
|
|
36
|
-
"@typescript-eslint/eslint-plugin": "^
|
|
37
|
-
"@typescript-eslint/parser": "^
|
|
38
|
-
"@vitejs/plugin-react": "^
|
|
39
|
-
"eslint": "^
|
|
40
|
-
"eslint-plugin-react-hooks": "^
|
|
41
|
-
"eslint-plugin-react-refresh": "^0.
|
|
42
|
-
"i18next": "^
|
|
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": "^
|
|
45
|
-
"react-dom": "^
|
|
46
|
-
"react-i18next": "^
|
|
47
|
-
"semantic-release": "^
|
|
48
|
-
"typescript": "^
|
|
49
|
-
"vite": "^
|
|
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": "^
|
|
51
|
+
"vitest": "^4.1.2"
|
|
52
52
|
},
|
|
53
53
|
"optionalDependencies": {
|
|
54
|
-
"@rollup/rollup-linux-x64-gnu": "^4.
|
|
54
|
+
"@rollup/rollup-linux-x64-gnu": "^4.60.1"
|
|
55
55
|
},
|
|
56
56
|
"dependencies": {
|
|
57
|
-
"@xmldom/xmldom": "^0.
|
|
58
|
-
"commander": "^
|
|
57
|
+
"@xmldom/xmldom": "^0.9.9",
|
|
58
|
+
"commander": "^14.0.3",
|
|
59
59
|
"crc-32": "^1.2.2",
|
|
60
|
-
"glob": "^
|
|
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
|
-
};
|