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

@@ -51,7 +51,7 @@ function getTranslationPaths() {
__dirname,
cur.split('/').slice(1, -1).join('/'),
'translations',
`${locale}.ts`,
`${locale}.json`,
);
if (existsSync(sourcePath) && !seen[sourcePath]) {
@@ -61,7 +61,7 @@ function getTranslationPaths() {
__dirname,
cur.split('/').slice(0, -1).join('/'),
'translations',
`${locale}.js`,
`${locale}.json`,
);
acc.push({