@docusaurus/core 0.0.0-4842 → 0.0.0-4845

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.
@@ -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(),
@@ -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-4842",
4
+ "version": "0.0.0-4845",
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-4842",
45
- "@docusaurus/logger": "0.0.0-4842",
46
- "@docusaurus/mdx-loader": "0.0.0-4842",
44
+ "@docusaurus/cssnano-preset": "0.0.0-4845",
45
+ "@docusaurus/logger": "0.0.0-4845",
46
+ "@docusaurus/mdx-loader": "0.0.0-4845",
47
47
  "@docusaurus/react-loadable": "5.5.2",
48
- "@docusaurus/utils": "0.0.0-4842",
49
- "@docusaurus/utils-common": "0.0.0-4842",
50
- "@docusaurus/utils-validation": "0.0.0-4842",
48
+ "@docusaurus/utils": "0.0.0-4845",
49
+ "@docusaurus/utils-common": "0.0.0-4845",
50
+ "@docusaurus/utils-validation": "0.0.0-4845",
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-4842",
109
- "@docusaurus/types": "0.0.0-4842",
108
+ "@docusaurus/module-type-aliases": "0.0.0-4845",
109
+ "@docusaurus/types": "0.0.0-4845",
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": "6bf15cea226810a6d8263f83eb2b6a56a5d0499b"
130
+ "gitHead": "5381d62303ebb8010c7de7dbe9b4c5d5be612fea"
131
131
  }