mirror of
https://github.com/facebook/docusaurus.git
synced 2025-05-21 04:57:05 +02:00
fix(v2): i18n perf issue: getTranslationFile() should not load content again (#4593)
* Fix getTranslationFiles() perf issue * improve doc
This commit is contained in:
parent
e99bb43823
commit
cb403afa93
5 changed files with 22 additions and 20 deletions
|
@ -104,8 +104,8 @@ export default function pluginContentDocs(
|
|||
});
|
||||
},
|
||||
|
||||
async getTranslationFiles() {
|
||||
return getLoadedContentTranslationFiles(await this.loadContent!());
|
||||
async getTranslationFiles({content}) {
|
||||
return getLoadedContentTranslationFiles(content);
|
||||
},
|
||||
|
||||
getClientModules() {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue