@prezly/theme-kit-intl 6.6.0

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 (92) hide show
  1. package/LICENSE +674 -0
  2. package/README.md +70 -0
  3. package/build/cjs/index.d.ts +4 -0
  4. package/build/cjs/index.js +19 -0
  5. package/build/cjs/isLocaleSupported.d.ts +1 -0
  6. package/build/cjs/isLocaleSupported.js +7 -0
  7. package/build/cjs/locales.d.ts +1 -0
  8. package/build/cjs/locales.js +5 -0
  9. package/build/cjs/messages/actions.d.ts +58 -0
  10. package/build/cjs/messages/actions.js +62 -0
  11. package/build/cjs/messages/content.d.ts +66 -0
  12. package/build/cjs/messages/content.js +70 -0
  13. package/build/cjs/messages/errors.d.ts +34 -0
  14. package/build/cjs/messages/errors.js +38 -0
  15. package/build/cjs/messages/index.d.ts +6 -0
  16. package/build/cjs/messages/index.js +68 -0
  17. package/build/cjs/messages/misc.d.ts +20 -0
  18. package/build/cjs/messages/misc.js +24 -0
  19. package/build/cjs/messages/search.d.ts +66 -0
  20. package/build/cjs/messages/search.js +70 -0
  21. package/build/cjs/messages/subscription.d.ts +19 -0
  22. package/build/cjs/messages/subscription.js +23 -0
  23. package/build/esm/index.d.ts +4 -0
  24. package/build/esm/index.mjs +4 -0
  25. package/build/esm/isLocaleSupported.d.ts +1 -0
  26. package/build/esm/isLocaleSupported.mjs +4 -0
  27. package/build/esm/locales.d.ts +1 -0
  28. package/build/esm/locales.mjs +2 -0
  29. package/build/esm/messages/actions.d.ts +58 -0
  30. package/build/esm/messages/actions.mjs +59 -0
  31. package/build/esm/messages/content.d.ts +66 -0
  32. package/build/esm/messages/content.mjs +67 -0
  33. package/build/esm/messages/errors.d.ts +34 -0
  34. package/build/esm/messages/errors.mjs +35 -0
  35. package/build/esm/messages/index.d.ts +6 -0
  36. package/build/esm/messages/index.mjs +6 -0
  37. package/build/esm/messages/misc.d.ts +20 -0
  38. package/build/esm/messages/misc.mjs +21 -0
  39. package/build/esm/messages/search.d.ts +66 -0
  40. package/build/esm/messages/search.mjs +67 -0
  41. package/build/esm/messages/subscription.d.ts +19 -0
  42. package/build/esm/messages/subscription.mjs +20 -0
  43. package/build/messages/af.json +388 -0
  44. package/build/messages/ar.json +388 -0
  45. package/build/messages/az.json +388 -0
  46. package/build/messages/be.json +388 -0
  47. package/build/messages/bg.json +388 -0
  48. package/build/messages/ca.json +388 -0
  49. package/build/messages/cs.json +388 -0
  50. package/build/messages/da.json +388 -0
  51. package/build/messages/de.json +392 -0
  52. package/build/messages/el.json +388 -0
  53. package/build/messages/en.json +388 -0
  54. package/build/messages/es.json +388 -0
  55. package/build/messages/et.json +392 -0
  56. package/build/messages/fi.json +388 -0
  57. package/build/messages/fil.json +388 -0
  58. package/build/messages/fr.json +388 -0
  59. package/build/messages/ga.json +388 -0
  60. package/build/messages/he.json +388 -0
  61. package/build/messages/hi.json +388 -0
  62. package/build/messages/hr.json +388 -0
  63. package/build/messages/hu.json +392 -0
  64. package/build/messages/id.json +384 -0
  65. package/build/messages/it.json +380 -0
  66. package/build/messages/ja.json +384 -0
  67. package/build/messages/kk.json +388 -0
  68. package/build/messages/ko.json +384 -0
  69. package/build/messages/lt.json +392 -0
  70. package/build/messages/lv.json +388 -0
  71. package/build/messages/mt.json +388 -0
  72. package/build/messages/nl.json +392 -0
  73. package/build/messages/no.json +388 -0
  74. package/build/messages/pl.json +388 -0
  75. package/build/messages/pt-BR.json +388 -0
  76. package/build/messages/pt.json +388 -0
  77. package/build/messages/ro.json +388 -0
  78. package/build/messages/ru.json +388 -0
  79. package/build/messages/sk.json +388 -0
  80. package/build/messages/sl.json +384 -0
  81. package/build/messages/sr.json +388 -0
  82. package/build/messages/sv.json +388 -0
  83. package/build/messages/sw.json +388 -0
  84. package/build/messages/th.json +388 -0
  85. package/build/messages/tr.json +384 -0
  86. package/build/messages/uk.json +388 -0
  87. package/build/messages/ur.json +388 -0
  88. package/build/messages/uz.json +380 -0
  89. package/build/messages/vi.json +388 -0
  90. package/build/messages/zh-CN.json +392 -0
  91. package/build/messages/zh-TW.json +392 -0
  92. package/package.json +78 -0
@@ -0,0 +1,392 @@
1
+ {
2
+ "actions.backToHomepage": [
3
+ {
4
+ "type": 0,
5
+ "value": "返回主頁"
6
+ }
7
+ ],
8
+ "actions.copyShareUrl": [
9
+ {
10
+ "type": 0,
11
+ "value": "複製網址"
12
+ }
13
+ ],
14
+ "actions.download": [
15
+ {
16
+ "type": 0,
17
+ "value": "下載"
18
+ }
19
+ ],
20
+ "actions.loadMore": [
21
+ {
22
+ "type": 0,
23
+ "value": "加載更多"
24
+ }
25
+ ],
26
+ "actions.more": [
27
+ {
28
+ "type": 0,
29
+ "value": "更多"
30
+ }
31
+ ],
32
+ "actions.privacyRequests": [
33
+ {
34
+ "type": 0,
35
+ "value": "私隱要求"
36
+ }
37
+ ],
38
+ "actions.readMore": [
39
+ {
40
+ "type": 0,
41
+ "value": "閱讀更多"
42
+ }
43
+ ],
44
+ "actions.reload": [
45
+ {
46
+ "type": 0,
47
+ "value": "重新加載"
48
+ }
49
+ ],
50
+ "actions.share": [
51
+ {
52
+ "type": 0,
53
+ "value": "分享"
54
+ }
55
+ ],
56
+ "actions.startUsingCookies": [
57
+ {
58
+ "type": 0,
59
+ "value": "開始使用Cookie"
60
+ }
61
+ ],
62
+ "actions.stopUsingCookies": [
63
+ {
64
+ "type": 0,
65
+ "value": "停止使用Cookie"
66
+ }
67
+ ],
68
+ "actions.subscribe": [
69
+ {
70
+ "type": 0,
71
+ "value": "訂閱"
72
+ }
73
+ ],
74
+ "actions.toggleFilters": [
75
+ {
76
+ "type": 0,
77
+ "value": "切換搜索過濾器"
78
+ }
79
+ ],
80
+ "actions.unsubscribe": [
81
+ {
82
+ "type": 0,
83
+ "value": "取消訂閱"
84
+ }
85
+ ],
86
+ "boilerplate.contact": [
87
+ {
88
+ "type": 0,
89
+ "value": "聯繫"
90
+ }
91
+ ],
92
+ "boilerplate.title": [
93
+ {
94
+ "type": 0,
95
+ "value": "關於 "
96
+ },
97
+ {
98
+ "type": 1,
99
+ "value": "companyName"
100
+ }
101
+ ],
102
+ "categories.title": [
103
+ {
104
+ "type": 0,
105
+ "value": "類別"
106
+ }
107
+ ],
108
+ "contacts.title": [
109
+ {
110
+ "type": 0,
111
+ "value": "聯絡我們"
112
+ }
113
+ ],
114
+ "cookieConsent.accept": [
115
+ {
116
+ "type": 0,
117
+ "value": "是的,您可以使用 cookies"
118
+ }
119
+ ],
120
+ "cookieConsent.notice": [
121
+ {
122
+ "type": 0,
123
+ "value": "您可以隨時在網頁底部撤銷 cookies 。"
124
+ }
125
+ ],
126
+ "cookieConsent.reject": [
127
+ {
128
+ "type": 0,
129
+ "value": "不,不要使用 cookies"
130
+ }
131
+ ],
132
+ "cookieConsent.subtitle": [
133
+ {
134
+ "type": 0,
135
+ "value": "我們的網站使用 cookies 。 它們幫助我們稍微了解您,以及您如何使用我們的網站。 這有助於我們為您和其他人提供更有價值和量身定制的體驗。"
136
+ }
137
+ ],
138
+ "cookieConsent.title": [
139
+ {
140
+ "type": 0,
141
+ "value": "我們想使用 cookies"
142
+ }
143
+ ],
144
+ "errors.emailInvalid": [
145
+ {
146
+ "type": 0,
147
+ "value": "介紹一個有效的電郵地址"
148
+ }
149
+ ],
150
+ "errors.fieldRequired": [
151
+ {
152
+ "type": 0,
153
+ "value": "此字段為必填項"
154
+ }
155
+ ],
156
+ "errors.unknown": [
157
+ {
158
+ "type": 0,
159
+ "value": "出了點問題。請再嘗試提交表格。"
160
+ }
161
+ ],
162
+ "mediaGallery.title": [
163
+ {
164
+ "type": 0,
165
+ "value": "媒體畫廊"
166
+ }
167
+ ],
168
+ "misc.embargoMessage": [
169
+ {
170
+ "type": 0,
171
+ "value": "禁止直至"
172
+ },
173
+ {
174
+ "type": 1,
175
+ "value": "date"
176
+ }
177
+ ],
178
+ "misc.loading": [
179
+ {
180
+ "type": 0,
181
+ "value": "正在加載…"
182
+ }
183
+ ],
184
+ "misc.shareUrlCopied": [
185
+ {
186
+ "type": 0,
187
+ "value": "網址已複製!"
188
+ }
189
+ ],
190
+ "misc.toggleMobileNavigation": [
191
+ {
192
+ "type": 0,
193
+ "value": "切換導航"
194
+ }
195
+ ],
196
+ "newsroom.title": [
197
+ {
198
+ "type": 0,
199
+ "value": "網站"
200
+ }
201
+ ],
202
+ "noStories.subtitle": [
203
+ {
204
+ "type": 0,
205
+ "value": "稍後回來看新的故事。"
206
+ }
207
+ ],
208
+ "noStories.title": [
209
+ {
210
+ "type": 0,
211
+ "value": "歡迎來到"
212
+ },
213
+ {
214
+ "type": 1,
215
+ "value": "newsroom"
216
+ },
217
+ {
218
+ "type": 0,
219
+ "value": "!"
220
+ }
221
+ ],
222
+ "notFound.subtitle": [
223
+ {
224
+ "type": 0,
225
+ "value": "如果您自行輸入網址,請檢查地址欄中的拼寫。"
226
+ }
227
+ ],
228
+ "notFound.title": [
229
+ {
230
+ "type": 0,
231
+ "value": "您要找的頁面不存在…"
232
+ }
233
+ ],
234
+ "search.action": [
235
+ {
236
+ "type": 0,
237
+ "value": "搜尋"
238
+ }
239
+ ],
240
+ "search.facets.category": [
241
+ {
242
+ "type": 0,
243
+ "value": "類別"
244
+ }
245
+ ],
246
+ "search.facets.month": [
247
+ {
248
+ "type": 0,
249
+ "value": "月"
250
+ }
251
+ ],
252
+ "search.facets.year": [
253
+ {
254
+ "type": 0,
255
+ "value": "年"
256
+ }
257
+ ],
258
+ "search.filters": [
259
+ {
260
+ "type": 0,
261
+ "value": "過濾器"
262
+ }
263
+ ],
264
+ "search.fullResultsSubTitle": [
265
+ {
266
+ "type": 0,
267
+ "value": "我們找到了"
268
+ },
269
+ {
270
+ "type": 1,
271
+ "value": "searchQuery"
272
+ },
273
+ {
274
+ "type": 0,
275
+ "value": " 的"
276
+ },
277
+ {
278
+ "type": 1,
279
+ "value": "resultsCount"
280
+ },
281
+ {
282
+ "type": 0,
283
+ "value": " 結果"
284
+ }
285
+ ],
286
+ "search.fullResultsTitle": [
287
+ {
288
+ "type": 0,
289
+ "value": "搜尋結果"
290
+ }
291
+ ],
292
+ "search.inputHint": [
293
+ {
294
+ "type": 0,
295
+ "value": "輸入您的搜尋"
296
+ }
297
+ ],
298
+ "search.inputLabel": [
299
+ {
300
+ "type": 0,
301
+ "value": "搜尋"
302
+ }
303
+ ],
304
+ "search.noResults": [
305
+ {
306
+ "type": 0,
307
+ "value": "無法找到相關內容,請嘗試輸入其他關鍵字。"
308
+ }
309
+ ],
310
+ "search.resultsTitle": [
311
+ {
312
+ "type": 0,
313
+ "value": "快速結果"
314
+ }
315
+ ],
316
+ "search.showAllResults": [
317
+ {
318
+ "type": 0,
319
+ "value": "顯示所有結果"
320
+ }
321
+ ],
322
+ "search.title": [
323
+ {
324
+ "type": 0,
325
+ "value": "搜尋"
326
+ }
327
+ ],
328
+ "search.viewLess": [
329
+ {
330
+ "type": 0,
331
+ "value": "查看更少"
332
+ }
333
+ ],
334
+ "search.viewMore": [
335
+ {
336
+ "type": 0,
337
+ "value": "查看更多"
338
+ }
339
+ ],
340
+ "serverError.subtitle": [
341
+ {
342
+ "type": 0,
343
+ "value": "嘗試刷新頁面或稍後再嘗試。"
344
+ }
345
+ ],
346
+ "serverError.title": [
347
+ {
348
+ "type": 0,
349
+ "value": "發生錯誤..."
350
+ }
351
+ ],
352
+ "subscription.disclaimer": [
353
+ {
354
+ "type": 0,
355
+ "value": "點擊「"
356
+ },
357
+ {
358
+ "type": 1,
359
+ "value": "subscribe"
360
+ },
361
+ {
362
+ "type": 0,
363
+ "value": "」,我確認我已詳閱並同意"
364
+ },
365
+ {
366
+ "type": 1,
367
+ "value": "privacyPolicyLink"
368
+ },
369
+ {
370
+ "type": 0,
371
+ "value": "。"
372
+ }
373
+ ],
374
+ "subscription.formTitle": [
375
+ {
376
+ "type": 0,
377
+ "value": "在您的收件匣中取得更新"
378
+ }
379
+ ],
380
+ "subscription.labelEmail": [
381
+ {
382
+ "type": 0,
383
+ "value": "您的電子郵件地址"
384
+ }
385
+ ],
386
+ "subscription.privacyPolicy": [
387
+ {
388
+ "type": 0,
389
+ "value": "私隱政策"
390
+ }
391
+ ]
392
+ }
package/package.json ADDED
@@ -0,0 +1,78 @@
1
+ {
2
+ "name": "@prezly/theme-kit-intl",
3
+ "version": "6.6.0",
4
+ "description": "Translations for Prezly themes",
5
+ "main": "build/cjs/index.js",
6
+ "module": "build/esm/index.mjs",
7
+ "types": "build/esm/index.d.ts",
8
+ "exports": {
9
+ ".": {
10
+ "import": "./build/esm/index.mjs",
11
+ "require": "./build/cjs/index.js",
12
+ "default": "./build/cjs/index.js"
13
+ },
14
+ "./messages": "./build/messages"
15
+ },
16
+ "files": [
17
+ "build",
18
+ "README.md"
19
+ ],
20
+ "engines": {
21
+ "node": ">= 14.x",
22
+ "npm": ">= 7.x"
23
+ },
24
+ "devEngines": {
25
+ "node": ">= 14.x",
26
+ "npm": ">= 7.x"
27
+ },
28
+ "scripts": {
29
+ "clean": "rimraf build/* *.tsbuildinfo",
30
+ "prebuild": "npm run clean && npm run build:locales && npm run prettier:check",
31
+ "build": "npm run intl:compile && npm run build:esm && npm run build:cjs",
32
+ "build:locales": "node ./build-locales.js > ./src/locales.ts && prettier --write ./src/locales.ts",
33
+ "build:esm": "tsc --project tsconfig.esm.json && babel --config-file=./babel.esm.js src/ --extensions=.ts --out-dir=build/esm/ --out-file-extension=.mjs",
34
+ "build:cjs": "tsc --project tsconfig.cjs.json && babel --config-file=./babel.cjs.js src/ --extensions=.ts --out-dir=build/cjs/",
35
+ "watch": "tsc --watch --preserveWatchOutput --project .",
36
+ "lint": "eslint ./src/",
37
+ "prettier:check": "prettier --check './src/**/*.{ts,js}'",
38
+ "prettier:fix": "prettier --write './src/**/*.{ts,js}'",
39
+ "test": "npm run test:build",
40
+ "test:build": "npm run test:build:messages && npm run test:build:cjs && npm run test:build:esm && npm run test:build:dts",
41
+ "test:build:cjs": "node test/test-build.cjs",
42
+ "test:build:esm": "node test/test-build.mjs",
43
+ "test:build:dts": "tsc --noEmit build/cjs/index.d.ts && tsc --noEmit build/esm/index.d.ts",
44
+ "test:build:messages": "echo 'Checking if the build/messages directory contains 49 files' && ls build/messages/*.json | cut -d\\/ -f3 | cut -d. -f1 | sort | wc -l | grep -q 49 || (echo 'Fail' && false) && echo 'OK'",
45
+ "intl:extract": "formatjs extract 'src/messages/**/*.ts' --out-file i18n/en.json --format crowdin --id-interpolation-pattern '[sha512:contenthash:base64:6]'",
46
+ "intl:compile": "formatjs compile-folder --ast --format crowdin i18n build/messages"
47
+ },
48
+ "np": {
49
+ "yarn": false
50
+ },
51
+ "repository": {
52
+ "type": "git",
53
+ "url": "git+https://github.com/prezly/theme-kit-js.git"
54
+ },
55
+ "keywords": [],
56
+ "author": "Prezly Team <hello@prezly.com> (https://www.prezly.com)",
57
+ "license": "GNU GPL v3",
58
+ "bugs": {
59
+ "url": "https://github.com/prezly/theme-kit-js/issues"
60
+ },
61
+ "homepage": "https://github.com/prezly/theme-kit-js/tree/main/packages/intl#readme",
62
+ "dependencies": {
63
+ "@formatjs/intl": "^1.16.0"
64
+ },
65
+ "devDependencies": {
66
+ "@babel/cli": "^7.23.0",
67
+ "@babel/core": "^7.23.2",
68
+ "@babel/plugin-transform-modules-commonjs": "^7.23.0",
69
+ "@babel/preset-env": "^7.23.2",
70
+ "@babel/preset-typescript": "^7.23.2",
71
+ "@formatjs/cli": "^4.4.0",
72
+ "babel-plugin-add-import-extension": "^1.6.0"
73
+ },
74
+ "publishConfig": {
75
+ "access": "public"
76
+ },
77
+ "gitHead": "3052b81b07bd65b57c2abfec7f07ee9346df4676"
78
+ }