@prosopo/locale 2.5.5 → 3.1.1

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 (79) hide show
  1. package/CHANGELOG.md +49 -0
  2. package/dist/cjs/i18SharedOptions.cjs +11 -0
  3. package/dist/cjs/i18nBackend.cjs +32 -0
  4. package/dist/cjs/i18nFrontend.cjs +60 -0
  5. package/dist/cjs/i18nMiddleware.cjs +8 -0
  6. package/dist/cjs/index.cjs +15 -0
  7. package/dist/cjs/loadI18next.cjs +28 -0
  8. package/dist/cjs/locales/en/translation.json.cjs +47 -0
  9. package/dist/cjs/translationKey.cjs +25 -0
  10. package/dist/cjs/translations.cjs +42 -0
  11. package/dist/cjs/useTranslation.cjs +8 -0
  12. package/dist/cjs/util.cjs +10 -0
  13. package/dist/i18SharedOptions.d.ts +8 -0
  14. package/dist/i18SharedOptions.d.ts.map +1 -0
  15. package/dist/i18SharedOptions.js +11 -0
  16. package/dist/i18nBackend.d.ts +2 -1
  17. package/dist/i18nBackend.d.ts.map +1 -1
  18. package/dist/i18nBackend.js +27 -25
  19. package/dist/i18nFrontend.d.ts +2 -1
  20. package/dist/i18nFrontend.d.ts.map +1 -1
  21. package/dist/i18nFrontend.js +48 -38
  22. package/dist/i18nMiddleware.js +5 -4
  23. package/dist/index.js +15 -7
  24. package/dist/loadI18next.d.ts.map +1 -1
  25. package/dist/loadI18next.js +26 -25
  26. package/dist/locales/ar/translation.json +442 -0
  27. package/dist/locales/az/translation.json +442 -0
  28. package/dist/locales/cs/translation.json +442 -0
  29. package/dist/locales/de/translation.json +440 -406
  30. package/dist/locales/el/translation.json +442 -0
  31. package/dist/locales/en/translation.json +440 -406
  32. package/dist/locales/en/translation.json.js +47 -0
  33. package/dist/locales/es/translation.json +440 -406
  34. package/dist/locales/fi/translation.json +442 -0
  35. package/dist/locales/fr/translation.json +440 -406
  36. package/dist/locales/hi/translation.json +442 -0
  37. package/dist/locales/hu/translation.json +442 -0
  38. package/dist/locales/id/translation.json +442 -0
  39. package/dist/locales/it/translation.json +440 -406
  40. package/dist/locales/ja/translation.json +442 -0
  41. package/dist/locales/jv/translation.json +442 -0
  42. package/dist/locales/ko/translation.json +442 -0
  43. package/dist/locales/ml/translation.json +442 -0
  44. package/dist/locales/ms/translation.json +442 -0
  45. package/dist/locales/nl/translation.json +442 -0
  46. package/dist/locales/no/translation.json +442 -0
  47. package/dist/locales/pl/translation.json +442 -0
  48. package/dist/locales/pt/translation.json +440 -406
  49. package/dist/locales/pt-BR/translation.json +440 -406
  50. package/dist/locales/ro/translation.json +442 -0
  51. package/dist/locales/ru/translation.json +442 -0
  52. package/dist/locales/sr/translation.json +442 -0
  53. package/dist/locales/sv/translation.json +442 -0
  54. package/dist/locales/th/translation.json +442 -0
  55. package/dist/locales/tr/translation.json +442 -0
  56. package/dist/locales/uk/translation.json +442 -0
  57. package/dist/locales/vi/translation.json +442 -0
  58. package/dist/locales/zh-CN/translation.json +442 -0
  59. package/dist/translationKey.js +21 -17
  60. package/dist/translations.d.ts +35 -2
  61. package/dist/translations.d.ts.map +1 -1
  62. package/dist/translations.js +41 -3
  63. package/dist/useTranslation.js +7 -6
  64. package/dist/util.js +8 -7
  65. package/package.json +24 -12
  66. package/vite.cjs.config.ts +5 -3
  67. package/vite.esm.config.ts +20 -0
  68. package/vite.test.config.ts +3 -4
  69. package/dist/i18nBackend.js.map +0 -1
  70. package/dist/i18nFrontend.js.map +0 -1
  71. package/dist/i18nMiddleware.js.map +0 -1
  72. package/dist/index.js.map +0 -1
  73. package/dist/loadI18next.js.map +0 -1
  74. package/dist/tests/locales.unit.test.js +0 -48
  75. package/dist/tests/locales.unit.test.js.map +0 -1
  76. package/dist/translationKey.js.map +0 -1
  77. package/dist/translations.js.map +0 -1
  78. package/dist/useTranslation.js.map +0 -1
  79. package/dist/util.js.map +0 -1
package/package.json CHANGED
@@ -1,49 +1,61 @@
1
1
  {
2
2
  "name": "@prosopo/locale",
3
- "version": "2.5.5",
3
+ "version": "3.1.1",
4
4
  "description": "Prosopo locale library",
5
- "main": "./dist/index.js",
6
5
  "type": "module",
7
6
  "engines": {
8
7
  "node": "20",
9
8
  "npm": "10.8.2"
10
9
  },
10
+ "main": "dist/index.js",
11
+ "types": "dist/index.d.ts",
11
12
  "exports": {
12
13
  ".": {
14
+ "types": "./dist/index.d.ts",
13
15
  "import": "./dist/index.js",
14
16
  "require": "./dist/cjs/index.cjs"
17
+ },
18
+ "./locales/en/translation.json": {
19
+ "import": "./dist/locales/en/translation.json",
20
+ "require": "./dist/locales/en/translation.json"
15
21
  }
16
22
  },
17
- "types": "./dist/index.d.ts",
18
23
  "scripts": {
19
- "clean": "tsc --build --clean",
20
- "build": "tsc --build --verbose",
21
- "build:cjs": "npx vite --config vite.cjs.config.ts build",
24
+ "clean": "del-cli --verbose dist tsconfig.tsbuildinfo",
25
+ "build": "NODE_ENV=${NODE_ENV:-production}; vite build --config vite.esm.config.ts --mode $NODE_ENV",
26
+ "build:tsc": "tsc --build --verbose",
27
+ "build:cjs": "NODE_ENV=${NODE_ENV:-production}; vite build --config vite.cjs.config.ts --mode $NODE_ENV",
28
+ "typecheck": "tsc --build --declaration --emitDeclarationOnly --force",
22
29
  "test": "NODE_ENV=${NODE_ENV:-test}; npx vitest run --config ./vite.test.config.ts"
23
30
  },
24
31
  "author": "Prosopo Limited",
25
32
  "license": "Apache-2.0",
26
33
  "dependencies": {
34
+ "@typegoose/auto-increment": "4.13.0",
35
+ "axios": "1.10.0",
36
+ "esbuild": "0.25.6",
27
37
  "i18next": "24.2.2",
28
38
  "i18next-browser-languagedetector": "8.0.2",
29
39
  "i18next-chained-backend": "4.6.2",
30
40
  "i18next-fs-backend": "2.6.0",
31
41
  "i18next-http-backend": "3.0.2",
32
- "i18next-http-middleware": "3.7.1",
42
+ "i18next-http-middleware": "3.7.4",
33
43
  "i18next-resources-to-backend": "1.2.1",
44
+ "openpgp": "5.11.3",
34
45
  "react-i18next": "15.4.0",
35
- "zod": "3.23.8"
46
+ "zod": "3.23.8",
47
+ "@prosopo/config": "3.1.2",
48
+ "webpack-dev-server": "5.2.2"
36
49
  },
37
50
  "devDependencies": {
38
- "@prosopo/config": "2.5.5",
39
51
  "@vitest/coverage-v8": "3.0.9",
40
52
  "del-cli": "6.0.0",
41
53
  "dotenv": "16.4.5",
42
- "npm-run-all": "2.1.0",
54
+ "npm-run-all": "4.1.5",
43
55
  "tslib": "2.7.0",
44
- "tsx": "4.19.1",
56
+ "tsx": "4.20.3",
45
57
  "typescript": "5.6.2",
46
- "vite": "6.2.3",
58
+ "vite": "6.3.5",
47
59
  "vitest": "3.0.9"
48
60
  },
49
61
  "repository": {
@@ -1,3 +1,4 @@
1
+ import path from "node:path";
1
2
  // Copyright 2021-2025 Prosopo (UK) Ltd.
2
3
  //
3
4
  // Licensed under the Apache License, Version 2.0 (the "License");
@@ -11,10 +12,11 @@
11
12
  // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
13
  // See the License for the specific language governing permissions and
13
14
  // limitations under the License.
14
-
15
- import path from "node:path";
16
15
  import { ViteCommonJSConfig } from "@prosopo/config";
17
16
 
18
17
  export default function () {
19
- return ViteCommonJSConfig("locale", path.resolve("./tsconfig.cjs.json"));
18
+ return ViteCommonJSConfig(
19
+ path.basename("."),
20
+ path.resolve("./tsconfig.json"),
21
+ );
20
22
  }
@@ -0,0 +1,20 @@
1
+ // Copyright 2021-2025 Prosopo (UK) Ltd.
2
+ //
3
+ // Licensed under the Apache License, Version 2.0 (the "License");
4
+ // you may not use this file except in compliance with the License.
5
+ // You may obtain a copy of the License at
6
+ //
7
+ // http://www.apache.org/licenses/LICENSE-2.0
8
+ //
9
+ // Unless required by applicable law or agreed to in writing, software
10
+ // distributed under the License is distributed on an "AS IS" BASIS,
11
+ // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
+ // See the License for the specific language governing permissions and
13
+ // limitations under the License.
14
+
15
+ import path from "node:path";
16
+ import { ViteEsmConfig } from "@prosopo/config";
17
+
18
+ export default function () {
19
+ return ViteEsmConfig(path.basename("."), path.resolve("./tsconfig.json"));
20
+ }
@@ -1,3 +1,5 @@
1
+ import fs from "node:fs";
2
+ import path from "node:path";
1
3
  // Copyright 2021-2025 Prosopo (UK) Ltd.
2
4
  //
3
5
  // Licensed under the Apache License, Version 2.0 (the "License");
@@ -11,9 +13,6 @@
11
13
  // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
14
  // See the License for the specific language governing permissions and
13
15
  // limitations under the License.
14
-
15
- import fs from "node:fs";
16
- import path from "node:path";
17
16
  import { ViteTestConfig } from "@prosopo/config";
18
17
  import dotenv from "dotenv";
19
18
  process.env.NODE_ENV = "test";
@@ -30,4 +29,4 @@ if (fs.existsSync(envFile)) {
30
29
 
31
30
  dotenv.config({ path: envPath });
32
31
 
33
- export default ViteTestConfig;
32
+ export default ViteTestConfig();
@@ -1 +0,0 @@
1
- {"version":3,"file":"i18nBackend.js","sourceRoot":"","sources":["../src/i18nBackend.ts"],"names":[],"mappings":"AAcA,OAAO,IAAI,MAAM,WAAW,CAAC;AAC7B,OAAO,IAAI,MAAM,SAAS,CAAC;AAC3B,OAAO,SAAS,MAAM,wBAAwB,CAAC;AAC/C,OAAO,EAAE,gBAAgB,IAAI,0BAA0B,EAAE,MAAM,yBAAyB,CAAC;AACzF,OAAO,EAAE,cAAc,EAAE,SAAS,EAAE,MAAM,mBAAmB,CAAC;AAC9D,OAAO,EAAE,YAAY,EAAE,MAAM,WAAW,CAAC;AAEzC,MAAM,QAAQ,GACb,GAAG,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,8BAA8B,CAAC,OAAO,CACrE,SAAS,EACT,EAAE,CACF,CAAC;AAEH,MAAM,UAAU,cAAc;IAC7B,IAAI,CAAC,IAAI,CAAC,aAAa,IAAI,YAAY,EAAE,EAAE,CAAC;QAC3C,IAAI;aAEF,GAAG,CAAC,SAAS,CAAC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AM,IAAI,GAAG,MAAM,WAAW,CAAC,IAAI,CAAC,CAAC;IACrC,OAAO,MAAM,CAAC,IAAI,EAAE,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;AACrC,CAAC;AAED,eAAe,cAAc,CAAC"}
package/dist/index.js.map DELETED
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAcA,OAAO,EAAE,OAAO,IAAI,cAAc,EAAE,MAAM,qBAAqB,CAAC;AAChE,OAAO,EAAE,OAAO,IAAI,WAAW,EAAE,MAAM,kBAAkB,CAAC;AAC1D,OAAO,EAAE,SAAS,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAC;AAC9D,OAAO,EAAE,YAAY,EAAE,MAAM,WAAW,CAAC;AACzC,OAAO,EAAE,qBAAqB,EAAE,MAAM,qBAAqB,CAAC;AAE5D,OAAO,EAAE,OAAO,IAAI,cAAc,EAAE,MAAM,qBAAqB,CAAC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"loadI18next.js","sourceRoot":"","sources":["../src/loadI18next.ts"],"names":[],"mappings":"AAeA,IAAI,YAAkB,CAAC;AACvB,KAAK,UAAU,WAAW,CAAC,OAAgB;IAC1C,OAAO,IAAI,OAAO,CAAC,CAAC,OAAO,EAAE,MAAM,EAAE,EAAE;QACtC,IAAI,CAAC;YACJ,IAAI,OAAO,EAAE,CAAC;gBACb,MAAM,CAAC,kBAAkB,CAAC,CAAC,IAAI,CAAC,CAAC,EAAE,OAAO,EAAE,cAAc,EAAE,EAAE,EAAE;oBAC/D,IAAI,CAAC,YAAY,EAAE,CAAC;wBACnB,YAAY,GAAG,cAAc,EAAE,CAAC;oBACjC,CAAC;oBACD,OAAO,CAAC,YAAY,CAAC,CAAC;gBACvB,CAAC,CAAC,CAAC;YACJ,CAAC;iBAAM,CAAC;gBACP,MAAM,CAAC,mBAAmB,CAAC,CAAC,IAAI,CAAC,CAAC,EAAE,OAAO,EAAE,cAAc,EAAE,EAAE,EAAE;oBAChE,IAAI,CAAC,YAAY,EAAE,CAAC;wBACnB,YAAY,GAAG,cAAc,EAAE,CAAC;oBACjC,CAAC;oBACD,OAAO,CAAC,YAAY,CAAC,CAAC;gBACvB,CAAC,CAAC,CAAC;YACJ,CAAC;QACF,CAAC;QAAC,OAAO,CAAC,EAAE,CAAC;YACZ,MAAM,CAAC,CAAC,CAAC,CAAC;QACX,CAAC;IACF,CAAC,CAAC,CAAC;AACJ,CAAC;AAID,eAAe,WAAW,CAAC"}
@@ -1,48 +0,0 @@
1
- import fs from "node:fs";
2
- import path from "node:path";
3
- import { describe, expect, test } from "vitest";
4
- import { Languages } from "../index.js";
5
- describe("logging", () => {
6
- test("Make sure the number of files present in the locales folder is the same size as the Languages array", () => {
7
- const locales = fs.readdirSync(path.resolve("./src/locales"));
8
- expect(locales.length).to.equal(Languages.length);
9
- });
10
- test("Get all locale JSON files and ensure the keys are identical in each one", () => {
11
- const locales = Languages;
12
- const sectionKeys = new Set();
13
- console.log("Local test running at ", path.resolve("."));
14
- const sectionKeysObj = {};
15
- const innerKeysObj = {};
16
- for (const locale of locales) {
17
- const localeData = fs.readFileSync(path.resolve(`./src/locales/${locale}/translation.json`), "utf8");
18
- const localeKeys = Object.keys(JSON.parse(localeData));
19
- for (const sectionKey of localeKeys) {
20
- sectionKeys.add(sectionKey);
21
- }
22
- sectionKeysObj[locale] = new Set(localeKeys);
23
- for (const sectionKey of localeKeys) {
24
- const innerKeys = JSON.parse(localeData)[sectionKey];
25
- if (typeof innerKeys !== "object") {
26
- continue;
27
- }
28
- if (!innerKeysObj[locale]) {
29
- innerKeysObj[locale] = {};
30
- }
31
- if (!innerKeysObj[locale][sectionKey]) {
32
- innerKeysObj[locale][sectionKey] = new Set();
33
- }
34
- for (const innerKey of Object.keys(innerKeys)) {
35
- innerKeysObj[locale][sectionKey].add(innerKey);
36
- }
37
- }
38
- }
39
- for (const locale of Array.from(locales)) {
40
- console.log("Checking", locale);
41
- expect(sectionKeysObj[locale]).to.deep.equal(sectionKeysObj.en);
42
- for (const sectionKey of Object.keys(innerKeysObj[locale])) {
43
- expect(innerKeysObj[locale][sectionKey]).to.deep.equal(innerKeysObj.en[sectionKey]);
44
- }
45
- }
46
- });
47
- });
48
- //# sourceMappingURL=locales.unit.test.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"locales.unit.test.js","sourceRoot":"","sources":["../../src/tests/locales.unit.test.ts"],"names":[],"mappings":"AAcA,OAAO,EAAE,MAAM,SAAS,CAAC;AACzB,OAAO,IAAI,MAAM,WAAW,CAAC;AAC7B,OAAO,EAAE,QAAQ,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,QAAQ,CAAC;AAChD,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAExC,QAAQ,CAAC,SAAS,EAAE,GAAG,EAAE;IACxB,IAAI,CAAC,qGAAqG,EAAE,GAAG,EAAE;QAChH,MAAM,OAAO,GAAG,EAAE,CAAC,WAAW,CAAC,IAAI,CAAC,OAAO,CAAC,eAAe,CAAC,CAAC,CAAC;QAC9D,MAAM,CAAC,OAAO,CAAC,MAAM,CAAC,CAAC,EAAE,CAAC,KAAK,CAAC,SAAS,CAAC,MAAM,CAAC,CAAC;IACnD,CAAC,CAAC,CAAC;IAEH,IAAI,CAAC,yEAAyE,EAAE,GAAG,EAAE;QACpF,MAAM,OAAO,GAAG,SAAS,CAAC;QAC1B,MAAM,WAAW,GAAG,IAAI,GAAG,EAAU,CAAC;QACtC,OAAO,CAAC,GAAG,CAAC,wBAAwB,EAAE,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC;QACzD,MAAM,cAAc,GAAmC,EAAE,CAAC;QAC1D,MAAM,YAAY,GAAsD,EAAE,CAAC;QAC3E,KAAK,MAAM,MAAM,IAAI,OAAO,EAAE,CAAC;YAC9B,MAAM,UAAU,GAAG,EAAE,CAAC,YAAY,CACjC,IAAI,CAAC,OAAO,CAAC,iBAAiB,MAAM,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AC;AAED,MAAM,CAAC,MAAM,qBAAqB,GAAG,CAAC,CAAC,IAAI,CAC1C,gBAAgB,CAAC,aAAa,CAA0B,CACxD,CAAC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"translations.js","sourceRoot":"","sources":["../src/translations.ts"],"names":[],"mappings":"AAcA,OAAO,CAAC,MAAM,KAAK,CAAC;AAEpB,MAAM,CAAC,MAAM,SAAS,GAAG,CAAC,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,OAAO,CAAU,CAAC;AAEhF,MAAM,CAAC,MAAM,cAAc,GAAG,CAAC,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"useTranslation.js","sourceRoot":"","sources":["../src/useTranslation.ts"],"names":[],"mappings":"AAcA,OAAO,EAGN,cAAc,IAAI,qBAAqB,GACvC,MAAM,eAAe,CAAC;AACvB,OAAO,cAAc,MAAM,mBAAmB,CAAC;AAE/C,SAAS,cAAc,CACtB,OAA8C;IAK9C,MAAM,IAAI,GAAG,cAAc,EAAE,CAAC;IAC9B,OAAO,qBAAqB,CAAC,aAAa,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;AACnE,CAAC;AAED,eAAe,cAAc,CAAC"}
package/dist/util.js.map DELETED
@@ -1 +0,0 @@
1
- {"version":3,"file":"util.js","sourceRoot":"","sources":["../src/util.ts"],"names":[],"mappings":"AAcA,MAAM,CAAC,MAAM,YAAY,GAAG,GAAY,EAAE;IACzC,OAAO,CAAC,CAAC,CACR,OAAO,MAAM,KAAK,WAAW;QAC7B,MAAM,CAAC,QAAQ;QACf,MAAM,CAAC,QAAQ,CAAC,aAAa,CAC7B,CAAC;AACH,CAAC,CAAC;AAEF,MAAM,CAAC,MAAM,YAAY,GAAG,GAAY,EAAE;IACzC,OAAO,CAAC,YAAY,EAAE,CAAC;AACxB,CAAC,CAAC"}