From 8e5ee59367a77019afb8f6c4588ddd943a76d91e Mon Sep 17 00:00:00 2001 From: Shen Chen Date: Fri, 11 Aug 2023 14:54:16 -0700 Subject: [PATCH] Fix path --- tasks/localizationTasks.ts | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/tasks/localizationTasks.ts b/tasks/localizationTasks.ts index 21dd49a0b..b60148044 100644 --- a/tasks/localizationTasks.ts +++ b/tasks/localizationTasks.ts @@ -21,14 +21,12 @@ type Options = { }; const localizationLanguages = ['cs', 'de', 'es', 'fr', 'it', 'ja', 'ko', 'pl', 'pt-br', 'ru', 'tr', 'zh-cn', 'zh-tw']; -const locFiles = ['bundle.l10n.%s.json', 'package.nls.%s.json']; function getAllPossibleLocalizationFiles(): string[] { const files = []; for (const lang of localizationLanguages) { - for (const file of locFiles) { - files.push('l10n' + path.sep + util.format(file, lang)); - } + files.push('l10n' + path.sep + util.format('bundle.l10n.%s.json', lang)); + files.push(util.format('package.nls.%s.json', lang)); } // English files.push(`l10n${path.sep}bundle.l10n.json`);