mirror of
https://github.com/facebook/docusaurus.git
synced 2025-07-17 16:47:56 +02:00
Restore default code translations
This commit is contained in:
parent
ae4637bec5
commit
b841dbc13f
1 changed files with 4 additions and 6 deletions
|
@ -94,12 +94,10 @@ async function executePluginContentLoading({
|
|||
);
|
||||
}
|
||||
|
||||
// TODO this may not work if default locale is not english?
|
||||
const defaultCodeTranslations = shouldTranslate
|
||||
? (await PerfLogger.async('getDefaultCodeTranslationMessages()', () =>
|
||||
plugin.getDefaultCodeTranslationMessages?.(),
|
||||
)) ?? {}
|
||||
: {};
|
||||
const defaultCodeTranslations =
|
||||
(await PerfLogger.async('getDefaultCodeTranslationMessages()', () =>
|
||||
plugin.getDefaultCodeTranslationMessages?.(),
|
||||
)) ?? {};
|
||||
|
||||
if (!plugin.contentLoaded) {
|
||||
return {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue