@docusaurus/core 0.0.0-4806 → 0.0.0-4811
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.
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* This source code is licensed under the MIT license found in the
|
|
5
5
|
* LICENSE file in the root directory of this source tree.
|
|
6
6
|
*/
|
|
7
|
-
import type { TranslationFileContent, TranslationFile,
|
|
7
|
+
import type { TranslationFileContent, TranslationFile, CodeTranslations, InitializedPlugin } from '@docusaurus/types';
|
|
8
8
|
export declare type WriteTranslationsOptions = {
|
|
9
9
|
override?: boolean;
|
|
10
10
|
messagePrefix?: string;
|
|
@@ -25,17 +25,9 @@ export declare function localizePluginTranslationFile({ siteDir, plugin, locale,
|
|
|
25
25
|
plugin: InitializedPlugin;
|
|
26
26
|
translationFile: TranslationFile;
|
|
27
27
|
}): Promise<TranslationFile>;
|
|
28
|
-
export declare function getPluginsDefaultCodeTranslationMessages(plugins: InitializedPlugin[]): Promise<
|
|
29
|
-
[msgId: string]: string;
|
|
30
|
-
}>;
|
|
28
|
+
export declare function getPluginsDefaultCodeTranslationMessages(plugins: InitializedPlugin[]): Promise<CodeTranslations>;
|
|
31
29
|
export declare function applyDefaultCodeTranslations({ extractedCodeTranslations, defaultCodeMessages, }: {
|
|
32
|
-
extractedCodeTranslations:
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
defaultCodeMessages: {
|
|
36
|
-
[msgId: string]: string;
|
|
37
|
-
};
|
|
38
|
-
}): {
|
|
39
|
-
[msgId: string]: TranslationMessage;
|
|
40
|
-
};
|
|
30
|
+
extractedCodeTranslations: TranslationFileContent;
|
|
31
|
+
defaultCodeMessages: CodeTranslations;
|
|
32
|
+
}): TranslationFileContent;
|
|
41
33
|
export {};
|
|
@@ -5,14 +5,12 @@
|
|
|
5
5
|
* LICENSE file in the root directory of this source tree.
|
|
6
6
|
*/
|
|
7
7
|
import { type TransformOptions } from '@babel/core';
|
|
8
|
-
import type { InitializedPlugin, TranslationFileContent
|
|
8
|
+
import type { InitializedPlugin, TranslationFileContent } from '@docusaurus/types';
|
|
9
9
|
export declare function globSourceCodeFilePaths(dirPaths: string[]): Promise<string[]>;
|
|
10
10
|
export declare function extractSiteSourceCodeTranslations(siteDir: string, plugins: InitializedPlugin[], babelOptions: TransformOptions, extraSourceCodeFilePaths?: string[]): Promise<TranslationFileContent>;
|
|
11
11
|
declare type SourceCodeFileTranslations = {
|
|
12
12
|
sourceCodeFilePath: string;
|
|
13
|
-
translations:
|
|
14
|
-
[msgId: string]: TranslationMessage;
|
|
15
|
-
};
|
|
13
|
+
translations: TranslationFileContent;
|
|
16
14
|
warnings: string[];
|
|
17
15
|
};
|
|
18
16
|
export declare function extractAllSourceCodeFileTranslations(sourceCodeFilePaths: string[], babelOptions: TransformOptions): Promise<SourceCodeFileTranslations[]>;
|
|
@@ -24,6 +24,4 @@ export declare function loadThemeAliases({ siteDir, plugins, }: {
|
|
|
24
24
|
* instead of naively aliasing this to `client/exports`, we use fine-grained
|
|
25
25
|
* aliases instead.
|
|
26
26
|
*/
|
|
27
|
-
export declare function loadDocusaurusAliases(): Promise<
|
|
28
|
-
[aliasName: string]: string;
|
|
29
|
-
}>;
|
|
27
|
+
export declare function loadDocusaurusAliases(): Promise<ThemeAliases>;
|
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-4811",
|
|
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-4811",
|
|
45
|
+
"@docusaurus/logger": "0.0.0-4811",
|
|
46
|
+
"@docusaurus/mdx-loader": "0.0.0-4811",
|
|
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-4811",
|
|
49
|
+
"@docusaurus/utils-common": "0.0.0-4811",
|
|
50
|
+
"@docusaurus/utils-validation": "0.0.0-4811",
|
|
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-4811",
|
|
109
|
+
"@docusaurus/types": "0.0.0-4811",
|
|
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": "f174c77967abd972ab9685ba682119b38c6ac55b"
|
|
131
131
|
}
|