@docusaurus/core 3.9.2-canary-6588 → 3.9.2-canary-6566

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.
@@ -5,7 +5,7 @@
5
5
  * LICENSE file in the root directory of this source tree.
6
6
  */
7
7
  import type { I18n, DocusaurusConfig, I18nLocaleConfig, I18nConfig } from '@docusaurus/types';
8
- export declare function getDefaultLocaleConfig(locale: string, htmlLang?: string): Omit<I18nLocaleConfig, 'translate' | 'url' | 'baseUrl'>;
8
+ export declare function getDefaultLocaleConfig(locale: string): Omit<I18nLocaleConfig, 'translate' | 'url' | 'baseUrl'>;
9
9
  export declare function getLocaleList({ i18nConfig, currentLocale, }: {
10
10
  i18nConfig: I18nConfig;
11
11
  currentLocale: string;
@@ -70,20 +70,13 @@ function getDefaultDirection(localeStr) {
70
70
  const textInto = locale.getTextInfo?.() ?? locale.textInfo;
71
71
  return textInto.direction ?? 'ltr';
72
72
  }
73
- function getDefaultLocaleConfig(
74
- // Locale "key/identifier"
75
- // Can be anything, but usually a country / BCP47 code
76
- locale,
77
- // optionally provided in i18n.localConfigs, need to respect BCP47
78
- htmlLang) {
73
+ function getDefaultLocaleConfig(locale) {
79
74
  try {
80
75
  return {
81
- label: getDefaultLocaleLabel(htmlLang ?? locale),
82
- direction: getDefaultDirection(htmlLang ?? locale),
83
- htmlLang: htmlLang ?? locale,
84
- calendar: getDefaultCalendar(htmlLang ?? locale),
85
- // Fot the i18n/<path>, we don't use htmlLang on purpose
86
- // see bug https://github.com/facebook/docusaurus/issues/11952
76
+ label: getDefaultLocaleLabel(locale),
77
+ direction: getDefaultDirection(locale),
78
+ htmlLang: locale,
79
+ calendar: getDefaultCalendar(locale),
87
80
  path: locale,
88
81
  };
89
82
  }
@@ -110,7 +103,7 @@ async function loadI18n({ siteDir, config, currentLocale, automaticBaseUrlLocali
110
103
  async function getFullLocaleConfig(locale) {
111
104
  const localeConfigInput = i18nConfig.localeConfigs[locale] ?? {};
112
105
  const localeConfig = {
113
- ...getDefaultLocaleConfig(locale, localeConfigInput.htmlLang),
106
+ ...getDefaultLocaleConfig(localeConfigInput.htmlLang ?? locale),
114
107
  ...localeConfigInput,
115
108
  };
116
109
  // By default, translations will be enabled if i18n/<locale> dir exists
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": "3.9.2-canary-6588",
4
+ "version": "3.9.2-canary-6566",
5
5
  "license": "MIT",
6
6
  "publishConfig": {
7
7
  "access": "public"
@@ -33,13 +33,13 @@
33
33
  "url": "https://github.com/facebook/docusaurus/issues"
34
34
  },
35
35
  "dependencies": {
36
- "@docusaurus/babel": "3.9.2-canary-6588",
37
- "@docusaurus/bundler": "3.9.2-canary-6588",
38
- "@docusaurus/logger": "3.9.2-canary-6588",
39
- "@docusaurus/mdx-loader": "3.9.2-canary-6588",
40
- "@docusaurus/utils": "3.9.2-canary-6588",
41
- "@docusaurus/utils-common": "3.9.2-canary-6588",
42
- "@docusaurus/utils-validation": "3.9.2-canary-6588",
36
+ "@docusaurus/babel": "3.9.2-canary-6566",
37
+ "@docusaurus/bundler": "3.9.2-canary-6566",
38
+ "@docusaurus/logger": "3.9.2-canary-6566",
39
+ "@docusaurus/mdx-loader": "3.9.2-canary-6566",
40
+ "@docusaurus/utils": "3.9.2-canary-6566",
41
+ "@docusaurus/utils-common": "3.9.2-canary-6566",
42
+ "@docusaurus/utils-validation": "3.9.2-canary-6566",
43
43
  "boxen": "^6.2.1",
44
44
  "chalk": "^4.1.2",
45
45
  "chokidar": "^3.5.3",
@@ -52,9 +52,9 @@
52
52
  "eta": "^2.2.0",
53
53
  "eval": "^0.1.8",
54
54
  "execa": "^5.1.1",
55
- "fs-extra": "^11.2.0",
55
+ "fs-extra": "^11.1.1",
56
56
  "html-tags": "^3.3.1",
57
- "html-webpack-plugin": "^5.6.7",
57
+ "html-webpack-plugin": "^5.6.0",
58
58
  "leven": "^3.1.0",
59
59
  "lodash": "^4.17.21",
60
60
  "open": "^8.4.0",
@@ -66,19 +66,19 @@
66
66
  "react-router": "^5.3.4",
67
67
  "react-router-config": "^5.1.1",
68
68
  "react-router-dom": "^5.3.4",
69
- "semver": "^7.7.4",
69
+ "semver": "^7.5.4",
70
70
  "serve-handler": "^6.1.7",
71
- "tinypool": "^2.1.0",
71
+ "tinypool": "^1.0.2",
72
72
  "tslib": "^2.6.0",
73
73
  "update-notifier": "^6.0.2",
74
- "webpack": "^5.106.2",
75
- "webpack-bundle-analyzer": "^5.3.0",
76
- "webpack-dev-server": "^5.2.3",
74
+ "webpack": "^5.95.0",
75
+ "webpack-bundle-analyzer": "^4.10.2",
76
+ "webpack-dev-server": "^5.2.2",
77
77
  "webpack-merge": "^6.0.1"
78
78
  },
79
79
  "devDependencies": {
80
- "@docusaurus/module-type-aliases": "3.9.2-canary-6588",
81
- "@docusaurus/types": "3.9.2-canary-6588",
80
+ "@docusaurus/module-type-aliases": "3.9.2-canary-6566",
81
+ "@docusaurus/types": "3.9.2-canary-6566",
82
82
  "@total-typescript/shoehorn": "^0.1.2",
83
83
  "@types/detect-port": "^1.3.3",
84
84
  "@types/react-dom": "^19.2.3",
@@ -92,9 +92,9 @@
92
92
  },
93
93
  "peerDependencies": {
94
94
  "@docusaurus/faster": "*",
95
- "@mdx-js/react": "^3.1.1",
96
- "react": "^19.2.5",
97
- "react-dom": "^19.2.5"
95
+ "@mdx-js/react": "^3.0.0",
96
+ "react": "^18.0.0 || ^19.0.0",
97
+ "react-dom": "^18.0.0 || ^19.0.0"
98
98
  },
99
99
  "peerDependenciesMeta": {
100
100
  "@docusaurus/faster": {
@@ -102,7 +102,7 @@
102
102
  }
103
103
  },
104
104
  "engines": {
105
- "node": ">=24.14"
105
+ "node": ">=20.0"
106
106
  },
107
- "gitHead": "cf683f3f706c00bd0bc6b93aadf8d8594f1a24e5"
107
+ "gitHead": "e6a67d274803eda2627a2be8186742acb5b10a3d"
108
108
  }