mirror of
https://github.com/facebook/docusaurus.git
synced 2025-07-23 19:48:54 +02:00
Disable localization in all content plugins
This commit is contained in:
parent
0924b8baa6
commit
ae4637bec5
8 changed files with 77 additions and 64 deletions
|
@ -73,13 +73,16 @@ export default async function pluginContentBlog(
|
|||
|
||||
const {baseUrl} = siteConfig;
|
||||
|
||||
const shouldLocalize = false;
|
||||
const contentPaths: BlogContentPaths = {
|
||||
contentPath: path.resolve(siteDir, options.path),
|
||||
contentPathLocalized: getPluginI18nPath({
|
||||
localizationDir,
|
||||
pluginName: PluginName,
|
||||
pluginId: options.id,
|
||||
}),
|
||||
contentPathLocalized: shouldLocalize
|
||||
? getPluginI18nPath({
|
||||
localizationDir,
|
||||
pluginName: PluginName,
|
||||
pluginId: options.id,
|
||||
})
|
||||
: undefined,
|
||||
};
|
||||
const pluginId = options.id ?? DEFAULT_PLUGIN_ID;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue