From a7f1f1eb8ecce1e0f145c9a6353b1f9c6d622428 Mon Sep 17 00:00:00 2001 From: Isaac Abadi Date: Wed, 29 Sep 2021 23:29:26 -0600 Subject: [PATCH] Fixed issue where language file generation occured after supported_locales.json was created --- src/postbuild.mjs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/postbuild.mjs b/src/postbuild.mjs index 233b3e32..ff20b87b 100644 --- a/src/postbuild.mjs +++ b/src/postbuild.mjs @@ -26,6 +26,7 @@ async function recFindByExt(base,ext,files,result) // outputs array of supported locales async function createLocalizationJSON() { + xliffToJSON.convert('src/assets/i18n'); const files = await recFindByExt(path.join('src', 'assets', 'i18n'), 'json'); const locales = []; @@ -35,7 +36,6 @@ async function createLocalizationJSON() { locales.push(file_parts[1]); } - xliffToJSON.convert('src/assets/i18n'); fs.unlinkSync('src/assets/i18n/messages.en.json'); fs.writeJSONSync('src/assets/i18n/supported_locales.json', {supported_locales: locales}); }