@prezly/theme-kit-intl 10.9.1 → 10.13.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.
- package/build/i18n/en.json +34 -0
- package/build/messages/content.cjs +28 -1
- package/build/messages/content.d.ts +27 -0
- package/build/messages/content.mjs +27 -0
- package/package.json +73 -75
package/build/i18n/en.json
CHANGED
|
@@ -267,6 +267,40 @@
|
|
|
267
267
|
"value": "Latest stories"
|
|
268
268
|
}
|
|
269
269
|
],
|
|
270
|
+
"liveEvent.badge": [
|
|
271
|
+
{
|
|
272
|
+
"type": 0,
|
|
273
|
+
"value": "Live"
|
|
274
|
+
}
|
|
275
|
+
],
|
|
276
|
+
"liveEvent.lastUpdated": [
|
|
277
|
+
{
|
|
278
|
+
"type": 0,
|
|
279
|
+
"value": "Last updated "
|
|
280
|
+
},
|
|
281
|
+
{
|
|
282
|
+
"type": 1,
|
|
283
|
+
"value": "time"
|
|
284
|
+
}
|
|
285
|
+
],
|
|
286
|
+
"liveEvent.noLiveEvents": [
|
|
287
|
+
{
|
|
288
|
+
"type": 0,
|
|
289
|
+
"value": "No live events"
|
|
290
|
+
}
|
|
291
|
+
],
|
|
292
|
+
"liveEvent.previousEvents": [
|
|
293
|
+
{
|
|
294
|
+
"type": 0,
|
|
295
|
+
"value": "Previous events"
|
|
296
|
+
}
|
|
297
|
+
],
|
|
298
|
+
"liveEvent.updates": [
|
|
299
|
+
{
|
|
300
|
+
"type": 0,
|
|
301
|
+
"value": "Live updates"
|
|
302
|
+
}
|
|
303
|
+
],
|
|
270
304
|
"mediaGallery.imagesCount": [
|
|
271
305
|
{
|
|
272
306
|
"offset": 0,
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
-
exports.noStories = exports.newsroom = exports.mediaGallery = exports.homepage = exports.cookieConsent = exports.contacts = exports.categories = exports.boilerplate = void 0;
|
|
6
|
+
exports.noStories = exports.newsroom = exports.mediaGallery = exports.liveEvent = exports.homepage = exports.cookieConsent = exports.contacts = exports.categories = exports.boilerplate = void 0;
|
|
7
7
|
var _dsl = require("../dsl.cjs");
|
|
8
8
|
var homepage = exports.homepage = (0, _dsl.defineMessages)({
|
|
9
9
|
latestStories: {
|
|
@@ -71,6 +71,33 @@ var newsroom = exports.newsroom = (0, _dsl.defineMessages)({
|
|
|
71
71
|
defaultMessage: 'Site'
|
|
72
72
|
}
|
|
73
73
|
});
|
|
74
|
+
var liveEvent = exports.liveEvent = (0, _dsl.defineMessages)({
|
|
75
|
+
badge: {
|
|
76
|
+
id: 'liveEvent.badge',
|
|
77
|
+
defaultMessage: 'Live',
|
|
78
|
+
description: 'A short badge on an ongoing event (e.g. an incident) whose page is updated as news comes in, as in "live coverage"'
|
|
79
|
+
},
|
|
80
|
+
updates: {
|
|
81
|
+
id: 'liveEvent.updates',
|
|
82
|
+
defaultMessage: 'Live updates',
|
|
83
|
+
description: 'Title of the timeline of short news updates about an ongoing event'
|
|
84
|
+
},
|
|
85
|
+
lastUpdated: {
|
|
86
|
+
id: 'liveEvent.lastUpdated',
|
|
87
|
+
defaultMessage: 'Last updated {time}',
|
|
88
|
+
description: '{time} is a time of day, e.g. "14:05 CEST"'
|
|
89
|
+
},
|
|
90
|
+
noLiveEvents: {
|
|
91
|
+
id: 'liveEvent.noLiveEvents',
|
|
92
|
+
defaultMessage: 'No live events',
|
|
93
|
+
description: 'Shown when there is no ongoing event covered with live updates'
|
|
94
|
+
},
|
|
95
|
+
previousEvents: {
|
|
96
|
+
id: 'liveEvent.previousEvents',
|
|
97
|
+
defaultMessage: 'Previous events',
|
|
98
|
+
description: 'Title of a list of past events that were covered with live updates'
|
|
99
|
+
}
|
|
100
|
+
});
|
|
74
101
|
var cookieConsent = exports.cookieConsent = (0, _dsl.defineMessages)({
|
|
75
102
|
title: {
|
|
76
103
|
id: 'cookieConsent.title',
|
|
@@ -64,6 +64,33 @@ export declare const newsroom: {
|
|
|
64
64
|
defaultMessage: string;
|
|
65
65
|
};
|
|
66
66
|
};
|
|
67
|
+
export declare const liveEvent: {
|
|
68
|
+
badge: {
|
|
69
|
+
id: string;
|
|
70
|
+
defaultMessage: string;
|
|
71
|
+
description: string;
|
|
72
|
+
};
|
|
73
|
+
updates: {
|
|
74
|
+
id: string;
|
|
75
|
+
defaultMessage: string;
|
|
76
|
+
description: string;
|
|
77
|
+
};
|
|
78
|
+
lastUpdated: {
|
|
79
|
+
id: string;
|
|
80
|
+
defaultMessage: string;
|
|
81
|
+
description: string;
|
|
82
|
+
};
|
|
83
|
+
noLiveEvents: {
|
|
84
|
+
id: string;
|
|
85
|
+
defaultMessage: string;
|
|
86
|
+
description: string;
|
|
87
|
+
};
|
|
88
|
+
previousEvents: {
|
|
89
|
+
id: string;
|
|
90
|
+
defaultMessage: string;
|
|
91
|
+
description: string;
|
|
92
|
+
};
|
|
93
|
+
};
|
|
67
94
|
export declare const cookieConsent: {
|
|
68
95
|
title: {
|
|
69
96
|
id: string;
|
|
@@ -65,6 +65,33 @@ export var newsroom = defineMessages({
|
|
|
65
65
|
defaultMessage: 'Site'
|
|
66
66
|
}
|
|
67
67
|
});
|
|
68
|
+
export var liveEvent = defineMessages({
|
|
69
|
+
badge: {
|
|
70
|
+
id: 'liveEvent.badge',
|
|
71
|
+
defaultMessage: 'Live',
|
|
72
|
+
description: 'A short badge on an ongoing event (e.g. an incident) whose page is updated as news comes in, as in "live coverage"'
|
|
73
|
+
},
|
|
74
|
+
updates: {
|
|
75
|
+
id: 'liveEvent.updates',
|
|
76
|
+
defaultMessage: 'Live updates',
|
|
77
|
+
description: 'Title of the timeline of short news updates about an ongoing event'
|
|
78
|
+
},
|
|
79
|
+
lastUpdated: {
|
|
80
|
+
id: 'liveEvent.lastUpdated',
|
|
81
|
+
defaultMessage: 'Last updated {time}',
|
|
82
|
+
description: '{time} is a time of day, e.g. "14:05 CEST"'
|
|
83
|
+
},
|
|
84
|
+
noLiveEvents: {
|
|
85
|
+
id: 'liveEvent.noLiveEvents',
|
|
86
|
+
defaultMessage: 'No live events',
|
|
87
|
+
description: 'Shown when there is no ongoing event covered with live updates'
|
|
88
|
+
},
|
|
89
|
+
previousEvents: {
|
|
90
|
+
id: 'liveEvent.previousEvents',
|
|
91
|
+
defaultMessage: 'Previous events',
|
|
92
|
+
description: 'Title of a list of past events that were covered with live updates'
|
|
93
|
+
}
|
|
94
|
+
});
|
|
68
95
|
export var cookieConsent = defineMessages({
|
|
69
96
|
title: {
|
|
70
97
|
id: 'cookieConsent.title',
|
package/package.json
CHANGED
|
@@ -1,77 +1,75 @@
|
|
|
1
1
|
{
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
2
|
+
"name": "@prezly/theme-kit-intl",
|
|
3
|
+
"version": "10.13.0",
|
|
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"
|
|
13
|
+
},
|
|
14
|
+
"./i18n": "./build/i18n",
|
|
15
|
+
"./i18n/*": "./build/i18n/*"
|
|
13
16
|
},
|
|
14
|
-
"
|
|
15
|
-
|
|
16
|
-
|
|
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
|
-
"test:build:esm": "node tests/test-build.mjs",
|
|
74
|
-
"intl:extract": "formatjs extract 'src/messages/**/*.ts' --out-file i18n/en.json --format crowdin --id-interpolation-pattern '[sha512:contenthash:base64:6]'",
|
|
75
|
-
"intl:compile": "formatjs compile-folder --ast --format crowdin i18n build/i18n"
|
|
76
|
-
}
|
|
77
|
-
}
|
|
17
|
+
"files": [
|
|
18
|
+
"build",
|
|
19
|
+
"README.md"
|
|
20
|
+
],
|
|
21
|
+
"engines": {
|
|
22
|
+
"node": ">= 14.x",
|
|
23
|
+
"npm": ">= 7.x"
|
|
24
|
+
},
|
|
25
|
+
"scripts": {
|
|
26
|
+
"clean": "rimraf --glob build/* *.tsbuildinfo",
|
|
27
|
+
"prebuild": "pnpm clean && pnpm build:locales && pnpm format",
|
|
28
|
+
"build": "pnpm intl:compile && pnpm build:types && pnpm build:esm && pnpm build:cjs",
|
|
29
|
+
"build:locales": "node ./build-locales.cjs > src/locales/supportedLocales.ts && biome format --write ./src/locales/supportedLocales.ts",
|
|
30
|
+
"build:types": "tsc --project .",
|
|
31
|
+
"build:esm": "babel --config-file=../../babel.esm.json src/ --extensions=.ts --out-dir=build/ --out-file-extension=.mjs",
|
|
32
|
+
"build:cjs": "babel --config-file=../../babel.cjs.json src/ --extensions=.ts --out-dir=build/ --out-file-extension=.cjs",
|
|
33
|
+
"watch": "tsc --watch --preserveWatchOutput --project .",
|
|
34
|
+
"lint": "biome lint ./src/",
|
|
35
|
+
"lint:fix": "biome lint --write ./src/",
|
|
36
|
+
"format": "biome format ./src/",
|
|
37
|
+
"format:fix": "biome format --write ./src/",
|
|
38
|
+
"typecheck": "tsc --noEmit --emitDeclarationOnly false --project .",
|
|
39
|
+
"test": "pnpm test:unit && pnpm test:build",
|
|
40
|
+
"test:unit": "jest",
|
|
41
|
+
"test:build": "pnpm test:build:i18n && pnpm test:build:i18n:dist && pnpm test:build:cjs && pnpm test:build:esm && pnpm test:build:types",
|
|
42
|
+
"test:build:types": "tsc --noEmit build/index.d.ts",
|
|
43
|
+
"test:build:i18n": "node tests/test-i18n.mjs",
|
|
44
|
+
"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'",
|
|
45
|
+
"test:build:cjs": "node tests/test-build.cjs",
|
|
46
|
+
"test:build:esm": "node tests/test-build.mjs",
|
|
47
|
+
"intl:extract": "formatjs extract 'src/messages/**/*.ts' --out-file i18n/en.json --format crowdin --id-interpolation-pattern '[sha512:contenthash:base64:6]'",
|
|
48
|
+
"intl:compile": "formatjs compile-folder --ast --format crowdin i18n build/i18n"
|
|
49
|
+
},
|
|
50
|
+
"np": {
|
|
51
|
+
"yarn": false
|
|
52
|
+
},
|
|
53
|
+
"repository": {
|
|
54
|
+
"type": "git",
|
|
55
|
+
"url": "git+https://github.com/prezly/theme-kit-js.git"
|
|
56
|
+
},
|
|
57
|
+
"keywords": [],
|
|
58
|
+
"author": "Prezly Team <hello@prezly.com> (https://www.prezly.com)",
|
|
59
|
+
"license": "GNU GPL v3",
|
|
60
|
+
"bugs": {
|
|
61
|
+
"url": "https://github.com/prezly/theme-kit-js/issues"
|
|
62
|
+
},
|
|
63
|
+
"homepage": "https://github.com/prezly/theme-kit-js/tree/main/packages/intl#readme",
|
|
64
|
+
"dependencies": {
|
|
65
|
+
"@technically/is-not-undefined": "^1.0.0"
|
|
66
|
+
},
|
|
67
|
+
"devDependencies": {
|
|
68
|
+
"@formatjs/cli": "4.8.4",
|
|
69
|
+
"typescript": "5.7.3"
|
|
70
|
+
},
|
|
71
|
+
"publishConfig": {
|
|
72
|
+
"access": "public"
|
|
73
|
+
},
|
|
74
|
+
"gitHead": "455f8c5db29b21db0791ee7f6e9fd60a08bd840e"
|
|
75
|
+
}
|