@prezly/theme-kit-nextjs 5.2.3 → 5.2.4-alpha.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/languages.js
CHANGED
|
@@ -13,18 +13,7 @@ function getLanguageFromNextLocaleIsoCode(languages, nextLocaleIsoCode) {
|
|
|
13
13
|
return defaultLanguage;
|
|
14
14
|
}
|
|
15
15
|
const locale = theme_kit_core_1.LocaleObject.fromAnyCode(nextLocaleIsoCode);
|
|
16
|
-
|
|
17
|
-
if (nextLocaleIsoCode.length >= 2 && nextLocaleIsoCode.length <= 4) {
|
|
18
|
-
// The order of methods here is reversed from `getShortestLocaleCode`, so that the logic "unwraps" the possible variants with no collisions
|
|
19
|
-
targetLanguage =
|
|
20
|
-
(0, theme_kit_core_1.getLanguageByExactLocaleCode)(languages, locale) ||
|
|
21
|
-
(0, theme_kit_core_1.getLanguageByShortRegionCode)(languages, locale) ||
|
|
22
|
-
(0, theme_kit_core_1.getLanguageByNeutralLocaleCode)(languages, locale);
|
|
23
|
-
}
|
|
24
|
-
else {
|
|
25
|
-
targetLanguage = (0, theme_kit_core_1.getLanguageByExactLocaleCode)(languages, locale);
|
|
26
|
-
}
|
|
27
|
-
return targetLanguage;
|
|
16
|
+
return (0, theme_kit_core_1.getLanguageFromLocaleIsoCode)(languages, locale);
|
|
28
17
|
}
|
|
29
18
|
exports.getLanguageFromNextLocaleIsoCode = getLanguageFromNextLocaleIsoCode;
|
|
30
19
|
//# sourceMappingURL=languages.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"languages.js","sourceRoot":"","sources":["../../src/intl/languages.ts"],"names":[],"mappings":";;;AACA,
|
|
1
|
+
{"version":3,"file":"languages.js","sourceRoot":"","sources":["../../src/intl/languages.ts"],"names":[],"mappings":";;;AACA,2DAIgC;AAEhC,qCAAgD;AAEhD;;;GAGG;AACH,SAAgB,gCAAgC,CAE9C,SAAqB,EAAE,iBAA0B;IAC/C,MAAM,eAAe,GAAG,IAAA,mCAAkB,EAAC,SAAS,CAAC,CAAC;IAEtD,IAAI,CAAC,iBAAiB,IAAI,iBAAiB,KAAK,6BAAoB,EAAE;QAClE,OAAO,eAAe,CAAC;KAC1B;IAED,MAAM,MAAM,GAAG,6BAAY,CAAC,WAAW,CAAC,iBAAiB,CAAC,CAAC;IAE3D,OAAO,IAAA,6CAA4B,EAAC,SAAS,EAAE,MAAM,CAAC,CAAC;AAC3D,CAAC;AAZD,4EAYC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@prezly/theme-kit-nextjs",
|
|
3
|
-
"version": "5.2.
|
|
3
|
+
"version": "5.2.4-alpha.0",
|
|
4
4
|
"description": "Data layer and utility library for developing Prezly themes with NextJS",
|
|
5
5
|
"main": "build/index.js",
|
|
6
6
|
"types": "build/index.d.ts",
|
|
@@ -67,15 +67,15 @@
|
|
|
67
67
|
}
|
|
68
68
|
},
|
|
69
69
|
"dependencies": {
|
|
70
|
-
"@prezly/theme-kit-core": "^5.2.
|
|
70
|
+
"@prezly/theme-kit-core": "^5.2.4-alpha.0",
|
|
71
71
|
"next-seo": "^5.4.0"
|
|
72
72
|
},
|
|
73
73
|
"devDependencies": {
|
|
74
|
-
"@sentry/nextjs": "7.
|
|
74
|
+
"@sentry/nextjs": "7.52.1"
|
|
75
75
|
},
|
|
76
76
|
"publishConfig": {
|
|
77
77
|
"access": "public"
|
|
78
78
|
},
|
|
79
79
|
"sideEffects": false,
|
|
80
|
-
"gitHead": "
|
|
80
|
+
"gitHead": "70b970dddef13aa971fb8d2b20ecf6c9fc2c8d96"
|
|
81
81
|
}
|