fix(v2): i18n perf issue: getTranslationFile() should not load content again (#4593)

* Fix getTranslationFiles() perf issue

* improve doc
This commit is contained in:
Sébastien Lorber 2021-04-09 19:28:48 +02:00 committed by GitHub
parent e99bb43823
commit cb403afa93
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 22 additions and 20 deletions

View file

@ -104,8 +104,8 @@ export default function pluginContentDocs(
});
},
async getTranslationFiles() {
return getLoadedContentTranslationFiles(await this.loadContent!());
async getTranslationFiles({content}) {
return getLoadedContentTranslationFiles(content);
},
getClientModules() {