mirror of
https://github.com/facebook/docusaurus.git
synced 2025-07-26 13:08:58 +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
|
@ -186,11 +186,16 @@ export async function getVersionMetadataPaths({
|
|||
>
|
||||
> {
|
||||
const isCurrent = versionName === CURRENT_VERSION_NAME;
|
||||
const contentPathLocalized = getDocsDirPathLocalized({
|
||||
localizationDir: context.localizationDir,
|
||||
pluginId: options.id,
|
||||
versionName,
|
||||
});
|
||||
|
||||
const shouldTranslate = false; // TODO wire this properly
|
||||
const contentPathLocalized = shouldTranslate
|
||||
? getDocsDirPathLocalized({
|
||||
localizationDir: context.localizationDir,
|
||||
pluginId: options.id,
|
||||
versionName,
|
||||
})
|
||||
: undefined;
|
||||
|
||||
const contentPath = isCurrent
|
||||
? path.resolve(context.siteDir, options.path)
|
||||
: getVersionDocsDirPath(context.siteDir, options.id, versionName);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue