@prezly/theme-kit-intl 10.14.0 → 10.15.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.
- package/build/i18n/af.json +19 -1
- package/build/i18n/ar.json +19 -1
- package/build/i18n/az.json +19 -1
- package/build/i18n/be.json +19 -1
- package/build/i18n/bg.json +19 -1
- package/build/i18n/ca.json +19 -1
- package/build/i18n/cs.json +19 -1
- package/build/i18n/da.json +19 -1
- package/build/i18n/de.json +19 -1
- package/build/i18n/el.json +19 -1
- package/build/i18n/en.json +19 -1
- package/build/i18n/es.json +19 -1
- package/build/i18n/et.json +19 -1
- package/build/i18n/fi.json +19 -1
- package/build/i18n/fil.json +19 -1
- package/build/i18n/fr.json +19 -1
- package/build/i18n/ga.json +19 -1
- package/build/i18n/he.json +19 -1
- package/build/i18n/hi.json +19 -1
- package/build/i18n/hr.json +19 -1
- package/build/i18n/hu.json +19 -1
- package/build/i18n/id.json +19 -1
- package/build/i18n/it.json +19 -1
- package/build/i18n/ja.json +19 -1
- package/build/i18n/kk.json +19 -1
- package/build/i18n/ko.json +19 -1
- package/build/i18n/lt.json +19 -1
- package/build/i18n/lv.json +19 -1
- package/build/i18n/mt.json +19 -1
- package/build/i18n/nb.json +19 -1
- package/build/i18n/nl.json +19 -1
- package/build/i18n/pl.json +19 -1
- package/build/i18n/pt-BR.json +19 -1
- package/build/i18n/pt.json +19 -1
- package/build/i18n/ro.json +19 -1
- package/build/i18n/ru.json +19 -1
- package/build/i18n/sk.json +19 -1
- package/build/i18n/sl.json +19 -1
- package/build/i18n/sr.json +19 -1
- package/build/i18n/sv.json +19 -1
- package/build/i18n/sw.json +19 -1
- package/build/i18n/th.json +19 -1
- package/build/i18n/tr.json +19 -1
- package/build/i18n/uk.json +19 -1
- package/build/i18n/ur.json +19 -1
- package/build/i18n/uz.json +19 -1
- package/build/i18n/vi.json +19 -1
- package/build/i18n/zh-CN.json +19 -1
- package/build/i18n/zh-TW.json +19 -1
- package/build/messages/content.cjs +16 -1
- package/build/messages/content.d.ts +15 -0
- package/build/messages/content.mjs +16 -1
- package/package.json +72 -73
package/package.json
CHANGED
|
@@ -1,75 +1,74 @@
|
|
|
1
1
|
{
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
},
|
|
14
|
-
"./i18n": "./build/i18n",
|
|
15
|
-
"./i18n/*": "./build/i18n/*"
|
|
2
|
+
"name": "@prezly/theme-kit-intl",
|
|
3
|
+
"version": "10.15.1",
|
|
4
|
+
"description": "Translations for Prezly themes",
|
|
5
|
+
"type": "module",
|
|
6
|
+
"main": "build/index.mjs",
|
|
7
|
+
"types": "build/index.d.ts",
|
|
8
|
+
"exports": {
|
|
9
|
+
".": {
|
|
10
|
+
"types": "./build/index.d.ts",
|
|
11
|
+
"require": "./build/index.cjs",
|
|
12
|
+
"default": "./build/index.mjs"
|
|
16
13
|
},
|
|
17
|
-
"
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
"
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
"
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
"
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
"
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
"
|
|
58
|
-
"
|
|
59
|
-
"
|
|
60
|
-
"
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
"
|
|
64
|
-
"
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
"
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
"
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
"
|
|
75
|
-
|
|
14
|
+
"./i18n": "./build/i18n",
|
|
15
|
+
"./i18n/*": "./build/i18n/*"
|
|
16
|
+
},
|
|
17
|
+
"files": [
|
|
18
|
+
"build",
|
|
19
|
+
"README.md"
|
|
20
|
+
],
|
|
21
|
+
"engines": {
|
|
22
|
+
"node": ">= 14.x",
|
|
23
|
+
"npm": ">= 7.x"
|
|
24
|
+
},
|
|
25
|
+
"np": {
|
|
26
|
+
"yarn": false
|
|
27
|
+
},
|
|
28
|
+
"repository": {
|
|
29
|
+
"type": "git",
|
|
30
|
+
"url": "git+https://github.com/prezly/theme-kit-js.git"
|
|
31
|
+
},
|
|
32
|
+
"keywords": [],
|
|
33
|
+
"author": "Prezly Team <hello@prezly.com> (https://www.prezly.com)",
|
|
34
|
+
"license": "GNU GPL v3",
|
|
35
|
+
"bugs": {
|
|
36
|
+
"url": "https://github.com/prezly/theme-kit-js/issues"
|
|
37
|
+
},
|
|
38
|
+
"homepage": "https://github.com/prezly/theme-kit-js/tree/main/packages/intl#readme",
|
|
39
|
+
"dependencies": {
|
|
40
|
+
"@technically/is-not-undefined": "^1.0.0"
|
|
41
|
+
},
|
|
42
|
+
"devDependencies": {
|
|
43
|
+
"@formatjs/cli": "4.8.4",
|
|
44
|
+
"typescript": "5.7.3"
|
|
45
|
+
},
|
|
46
|
+
"publishConfig": {
|
|
47
|
+
"access": "public"
|
|
48
|
+
},
|
|
49
|
+
"scripts": {
|
|
50
|
+
"clean": "rimraf --glob build/* *.tsbuildinfo",
|
|
51
|
+
"prebuild": "pnpm clean && pnpm build:locales && pnpm format",
|
|
52
|
+
"build": "pnpm intl:compile && pnpm build:types && pnpm build:esm && pnpm build:cjs",
|
|
53
|
+
"build:locales": "node ./build-locales.cjs > src/locales/supportedLocales.ts && biome format --write ./src/locales/supportedLocales.ts",
|
|
54
|
+
"build:types": "tsc --project .",
|
|
55
|
+
"build:esm": "babel --config-file=../../babel.esm.json src/ --extensions=.ts --out-dir=build/ --out-file-extension=.mjs",
|
|
56
|
+
"build:cjs": "babel --config-file=../../babel.cjs.json src/ --extensions=.ts --out-dir=build/ --out-file-extension=.cjs",
|
|
57
|
+
"watch": "tsc --watch --preserveWatchOutput --project .",
|
|
58
|
+
"lint": "biome lint ./src/",
|
|
59
|
+
"lint:fix": "biome lint --write ./src/",
|
|
60
|
+
"format": "biome format ./src/",
|
|
61
|
+
"format:fix": "biome format --write ./src/",
|
|
62
|
+
"typecheck": "tsc --noEmit --emitDeclarationOnly false --project .",
|
|
63
|
+
"test": "pnpm test:unit && pnpm test:build",
|
|
64
|
+
"test:unit": "jest",
|
|
65
|
+
"test:build": "pnpm test:build:i18n && pnpm test:build:i18n:dist && pnpm test:build:cjs && pnpm test:build:esm && pnpm test:build:types",
|
|
66
|
+
"test:build:types": "tsc --noEmit build/index.d.ts",
|
|
67
|
+
"test:build:i18n": "node tests/test-i18n.mjs",
|
|
68
|
+
"test:build:i18n:dist": "echo 'Checking if the build/i18n directory contains 55 files' && ls build/i18n/*.json | cut -d\\/ -f3 | cut -d. -f1 | sort | wc -l | grep -q 55 || (echo 'Fail' && false) && echo 'OK'",
|
|
69
|
+
"test:build:cjs": "node tests/test-build.cjs",
|
|
70
|
+
"test:build:esm": "node tests/test-build.mjs",
|
|
71
|
+
"intl:extract": "formatjs extract 'src/messages/**/*.ts' --out-file i18n/en.json --format crowdin --id-interpolation-pattern '[sha512:contenthash:base64:6]'",
|
|
72
|
+
"intl:compile": "formatjs compile-folder --ast --format crowdin i18n build/i18n"
|
|
73
|
+
}
|
|
74
|
+
}
|