@docusaurus/core 0.0.0-4843 → 0.0.0-4844
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/lib/server/configValidation.js +1 -0
- package/lib/server/i18n.js +2 -0
- package/package.json +10 -10
|
@@ -87,6 +87,7 @@ const LocaleConfigSchema = utils_validation_1.Joi.object({
|
|
|
87
87
|
label: utils_validation_1.Joi.string(),
|
|
88
88
|
htmlLang: utils_validation_1.Joi.string(),
|
|
89
89
|
direction: utils_validation_1.Joi.string().equal('ltr', 'rtl').default('ltr'),
|
|
90
|
+
calendar: utils_validation_1.Joi.string(),
|
|
90
91
|
});
|
|
91
92
|
const I18N_CONFIG_SCHEMA = utils_validation_1.Joi.object({
|
|
92
93
|
defaultLocale: utils_validation_1.Joi.string().required(),
|
package/lib/server/i18n.js
CHANGED
|
@@ -19,6 +19,8 @@ function getDefaultLocaleConfig(locale) {
|
|
|
19
19
|
label: getDefaultLocaleLabel(locale),
|
|
20
20
|
direction: (0, rtl_detect_1.getLangDir)(locale),
|
|
21
21
|
htmlLang: locale,
|
|
22
|
+
// If the locale name includes -u-ca-xxx the calendar will be defined
|
|
23
|
+
calendar: new Intl.Locale(locale).calendar ?? 'gregory',
|
|
22
24
|
};
|
|
23
25
|
}
|
|
24
26
|
exports.getDefaultLocaleConfig = getDefaultLocaleConfig;
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@docusaurus/core",
|
|
3
3
|
"description": "Easy to Maintain Open Source Documentation Websites",
|
|
4
|
-
"version": "0.0.0-
|
|
4
|
+
"version": "0.0.0-4844",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"publishConfig": {
|
|
7
7
|
"access": "public"
|
|
@@ -41,13 +41,13 @@
|
|
|
41
41
|
"@babel/runtime": "^7.17.8",
|
|
42
42
|
"@babel/runtime-corejs3": "^7.17.8",
|
|
43
43
|
"@babel/traverse": "^7.17.3",
|
|
44
|
-
"@docusaurus/cssnano-preset": "0.0.0-
|
|
45
|
-
"@docusaurus/logger": "0.0.0-
|
|
46
|
-
"@docusaurus/mdx-loader": "0.0.0-
|
|
44
|
+
"@docusaurus/cssnano-preset": "0.0.0-4844",
|
|
45
|
+
"@docusaurus/logger": "0.0.0-4844",
|
|
46
|
+
"@docusaurus/mdx-loader": "0.0.0-4844",
|
|
47
47
|
"@docusaurus/react-loadable": "5.5.2",
|
|
48
|
-
"@docusaurus/utils": "0.0.0-
|
|
49
|
-
"@docusaurus/utils-common": "0.0.0-
|
|
50
|
-
"@docusaurus/utils-validation": "0.0.0-
|
|
48
|
+
"@docusaurus/utils": "0.0.0-4844",
|
|
49
|
+
"@docusaurus/utils-common": "0.0.0-4844",
|
|
50
|
+
"@docusaurus/utils-validation": "0.0.0-4844",
|
|
51
51
|
"@slorber/static-site-generator-webpack-plugin": "^4.0.4",
|
|
52
52
|
"@svgr/webpack": "^6.2.1",
|
|
53
53
|
"autoprefixer": "^10.4.4",
|
|
@@ -105,8 +105,8 @@
|
|
|
105
105
|
"webpackbar": "^5.0.2"
|
|
106
106
|
},
|
|
107
107
|
"devDependencies": {
|
|
108
|
-
"@docusaurus/module-type-aliases": "0.0.0-
|
|
109
|
-
"@docusaurus/types": "0.0.0-
|
|
108
|
+
"@docusaurus/module-type-aliases": "0.0.0-4844",
|
|
109
|
+
"@docusaurus/types": "0.0.0-4844",
|
|
110
110
|
"@types/detect-port": "^1.3.2",
|
|
111
111
|
"@types/nprogress": "^0.2.0",
|
|
112
112
|
"@types/react-dom": "^17.0.14",
|
|
@@ -127,5 +127,5 @@
|
|
|
127
127
|
"engines": {
|
|
128
128
|
"node": ">=14"
|
|
129
129
|
},
|
|
130
|
-
"gitHead": "
|
|
130
|
+
"gitHead": "e0f8d5729166419088bbfd857d12d063c7a53a1e"
|
|
131
131
|
}
|