@prezly/theme-kit-intl 8.2.0 → 9.0.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/dictionary.cjs +33 -0
- package/build/dictionary.d.ts +3 -0
- package/build/dictionary.mjs +26 -0
- package/build/formatting/datetime/lib.cjs +4 -16
- package/build/formatting/datetime/lib.d.ts +2 -0
- package/build/formatting/datetime/lib.mjs +3 -16
- package/build/formatting/datetime/lib.test.cjs +14 -0
- package/build/formatting/datetime/lib.test.d.ts +1 -0
- package/build/formatting/datetime/lib.test.mjs +12 -0
- package/build/formatting/datetime/shared.test.cjs +15 -0
- package/build/formatting/datetime/shared.test.d.ts +1 -0
- package/build/formatting/datetime/shared.test.mjs +13 -0
- package/build/formatting/messages/lib.cjs +91 -63
- package/build/formatting/messages/lib.d.ts +7 -2
- package/build/formatting/messages/lib.mjs +89 -65
- package/build/formatting/messages/lib.test.cjs +141 -6
- package/build/formatting/messages/lib.test.mjs +142 -7
- package/build/formatting/messages/types.cjs +18 -1
- package/build/formatting/messages/types.d.ts +46 -3
- package/build/formatting/messages/types.mjs +12 -1
- package/build/i18n/af.json +87 -1
- package/build/i18n/ar.json +139 -2
- package/build/i18n/az.json +86 -0
- package/build/i18n/be.json +130 -0
- package/build/i18n/bg.json +130 -0
- package/build/i18n/ca.json +130 -0
- package/build/i18n/cs.json +134 -4
- package/build/i18n/da.json +130 -0
- package/build/i18n/de.json +86 -0
- package/build/i18n/el.json +86 -0
- package/build/i18n/en.json +130 -0
- package/build/i18n/es.json +131 -1
- package/build/i18n/et.json +86 -0
- package/build/i18n/fi.json +86 -0
- package/build/i18n/fil.json +87 -1
- package/build/i18n/fr.json +86 -0
- package/build/i18n/ga.json +130 -0
- package/build/i18n/he.json +108 -0
- package/build/i18n/hi.json +86 -0
- package/build/i18n/hr.json +108 -0
- package/build/i18n/hu.json +86 -0
- package/build/i18n/id.json +65 -1
- package/build/i18n/it.json +108 -0
- package/build/i18n/ja.json +64 -0
- package/build/i18n/kk.json +130 -0
- package/build/i18n/ko.json +64 -0
- package/build/i18n/lt.json +131 -1
- package/build/i18n/lv.json +87 -1
- package/build/i18n/mt.json +124 -0
- package/build/i18n/nl.json +131 -1
- package/build/i18n/no.json +86 -0
- package/build/i18n/pl.json +131 -1
- package/build/i18n/pt-BR.json +132 -2
- package/build/i18n/pt.json +133 -3
- package/build/i18n/ro.json +109 -1
- package/build/i18n/ru.json +130 -0
- package/build/i18n/sk.json +108 -0
- package/build/i18n/sl.json +131 -1
- package/build/i18n/sr.json +130 -0
- package/build/i18n/sv.json +130 -0
- package/build/i18n/sw.json +86 -0
- package/build/i18n/th.json +130 -0
- package/build/i18n/tr.json +130 -0
- package/build/i18n/uk.json +130 -0
- package/build/i18n/ur.json +86 -0
- package/build/i18n/uz.json +86 -0
- package/build/i18n/vi.json +64 -0
- package/build/i18n/zh-CN.json +130 -0
- package/build/i18n/zh-TW.json +64 -0
- package/build/index.cjs +12 -0
- package/build/index.d.ts +1 -0
- package/build/index.mjs +1 -0
- package/build/messages/content.cjs +12 -0
- package/build/messages/content.d.ts +12 -0
- package/build/messages/content.mjs +12 -0
- package/build/utils/index.cjs +12 -0
- package/build/utils/index.d.ts +1 -0
- package/build/utils/index.mjs +1 -0
- package/build/utils/withCache.cjs +20 -0
- package/build/utils/withCache.d.ts +1 -0
- package/build/utils/withCache.mjs +14 -0
- package/package.json +2 -2
|
@@ -25,6 +25,18 @@ export var mediaGallery = defineMessages({
|
|
|
25
25
|
title: {
|
|
26
26
|
id: 'mediaGallery.title',
|
|
27
27
|
defaultMessage: 'Media galleries'
|
|
28
|
+
},
|
|
29
|
+
titleSingular: {
|
|
30
|
+
id: 'mediaGallery.titleSingular',
|
|
31
|
+
defaultMessage: 'Media gallery'
|
|
32
|
+
},
|
|
33
|
+
imagesCount: {
|
|
34
|
+
id: 'mediaGallery.imagesCount',
|
|
35
|
+
defaultMessage: '{imagesCount, plural, =0 {No images} one {# image} few {# images} many {# images} other {# images} }'
|
|
36
|
+
},
|
|
37
|
+
videosCount: {
|
|
38
|
+
id: 'mediaGallery.videosCount',
|
|
39
|
+
defaultMessage: '{videosCount, plural, =0 {No videos} one {# video} few {# videos} many {# videos} other {# videos} }'
|
|
28
40
|
}
|
|
29
41
|
});
|
|
30
42
|
export var noStories = defineMessages({
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
Object.defineProperty(exports, "withCache", {
|
|
7
|
+
enumerable: true,
|
|
8
|
+
get: function get() {
|
|
9
|
+
return _withCache.withCache;
|
|
10
|
+
}
|
|
11
|
+
});
|
|
12
|
+
var _withCache = require("./withCache.cjs");
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { withCache } from './withCache';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { withCache } from "./withCache.mjs";
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.withCache = withCache;
|
|
7
|
+
function withCache(fn) {
|
|
8
|
+
var CACHE = new Map();
|
|
9
|
+
return function () {
|
|
10
|
+
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
11
|
+
args[_key] = arguments[_key];
|
|
12
|
+
}
|
|
13
|
+
var key = JSON.stringify(args);
|
|
14
|
+
var cached = CACHE.get(key);
|
|
15
|
+
if (cached) return cached;
|
|
16
|
+
var value = fn(...args);
|
|
17
|
+
CACHE.set(key, value);
|
|
18
|
+
return value;
|
|
19
|
+
};
|
|
20
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function withCache<P extends any[], T extends any>(fn: (...args: P) => T): (...args: P) => T;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
export function withCache(fn) {
|
|
2
|
+
var CACHE = new Map();
|
|
3
|
+
return function () {
|
|
4
|
+
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
5
|
+
args[_key] = arguments[_key];
|
|
6
|
+
}
|
|
7
|
+
var key = JSON.stringify(args);
|
|
8
|
+
var cached = CACHE.get(key);
|
|
9
|
+
if (cached) return cached;
|
|
10
|
+
var value = fn(...args);
|
|
11
|
+
CACHE.set(key, value);
|
|
12
|
+
return value;
|
|
13
|
+
};
|
|
14
|
+
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@prezly/theme-kit-intl",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "9.0.0",
|
|
4
4
|
"description": "Translations for Prezly themes",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "build/index.mjs",
|
|
@@ -73,5 +73,5 @@
|
|
|
73
73
|
"publishConfig": {
|
|
74
74
|
"access": "public"
|
|
75
75
|
},
|
|
76
|
-
"gitHead": "
|
|
76
|
+
"gitHead": "ef773d8f676e109875edb1a0aee54443083edc51"
|
|
77
77
|
}
|