Switch to JSON for localization service

This commit is contained in:
Iván Ovejero
2021-11-24 12:16:59 +01:00
parent 0462d14f91
commit ed68ae8055
13 changed files with 2233 additions and 2243 deletions

View File

@@ -34,6 +34,6 @@ export async function getNodeTranslationPath(
const maxVersion = await getMaxVersion(nodeDir);
return maxVersion
? join(nodeDir, `v${maxVersion}`, 'translations', `${language}.js`)
: join(nodeDir, 'translations', `${language}.js`);
? join(nodeDir, `v${maxVersion}`, 'translations', `${language}.json`)
: join(nodeDir, 'translations', `${language}.json`);
}