@prezly/theme-kit-core 6.5.0 → 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.
- package/build/intl/locale.d.ts +1 -1
- package/build/intl/locale.js +2 -2
- package/package.json +3 -3
package/build/intl/locale.d.ts
CHANGED
|
@@ -4,7 +4,7 @@ export type LangCode = string;
|
|
|
4
4
|
export type RegionCode = string;
|
|
5
5
|
export type LocaleCode = string;
|
|
6
6
|
/**
|
|
7
|
-
* Use this function to determine which translations file you should load from `@prezly/
|
|
7
|
+
* Use this function to determine which translations file you should load from `@prezly/theme-kit-intl` package.
|
|
8
8
|
* See https://github.com/prezly/theme-nextjs-bea/blob/main/utils/lang.ts for a usage example.
|
|
9
9
|
*/
|
|
10
10
|
export declare function getSupportedLocaleIsoCode(locale: LocaleObject): string;
|
package/build/intl/locale.js
CHANGED
|
@@ -3,7 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.getLocaleDirection = exports.getSupportedLocaleIsoCode = exports.DEFAULT_LOCALE = void 0;
|
|
4
4
|
exports.DEFAULT_LOCALE = 'en';
|
|
5
5
|
/**
|
|
6
|
-
* This a list of locales that Prezly has translations for. Each code represents a language file in the `@prezly/
|
|
6
|
+
* This a list of locales that Prezly has translations for. Each code represents a language file in the `@prezly/theme-kit-intl` package.
|
|
7
7
|
* See https://github.com/prezly/themes-intl-messages for more info.
|
|
8
8
|
*/
|
|
9
9
|
const SUPPORTED_LOCALES = [
|
|
@@ -57,7 +57,7 @@ const SUPPORTED_LOCALES = [
|
|
|
57
57
|
'zh-TW',
|
|
58
58
|
];
|
|
59
59
|
/**
|
|
60
|
-
* Use this function to determine which translations file you should load from `@prezly/
|
|
60
|
+
* Use this function to determine which translations file you should load from `@prezly/theme-kit-intl` package.
|
|
61
61
|
* See https://github.com/prezly/theme-nextjs-bea/blob/main/utils/lang.ts for a usage example.
|
|
62
62
|
*/
|
|
63
63
|
function getSupportedLocaleIsoCode(locale) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@prezly/theme-kit-core",
|
|
3
|
-
"version": "6.
|
|
3
|
+
"version": "6.6.0",
|
|
4
4
|
"description": "Data layer and utility library for developing Prezly themes with JavaScript",
|
|
5
5
|
"main": "build/index.js",
|
|
6
6
|
"types": "build/index.d.ts",
|
|
@@ -44,7 +44,7 @@
|
|
|
44
44
|
"parse-data-url": "^4.0.1"
|
|
45
45
|
},
|
|
46
46
|
"devDependencies": {
|
|
47
|
-
"@types/isomorphic-fetch": "0.0.
|
|
47
|
+
"@types/isomorphic-fetch": "0.0.37",
|
|
48
48
|
"@types/parse-data-url": "3.0.0"
|
|
49
49
|
},
|
|
50
50
|
"engines": {
|
|
@@ -72,5 +72,5 @@
|
|
|
72
72
|
"publishConfig": {
|
|
73
73
|
"access": "public"
|
|
74
74
|
},
|
|
75
|
-
"gitHead": "
|
|
75
|
+
"gitHead": "3052b81b07bd65b57c2abfec7f07ee9346df4676"
|
|
76
76
|
}
|