diff --git a/src/postbuild.mjs b/src/postbuild.mjs index 233b3e3..ff20b87 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}); }