diff options
Diffstat (limited to 'scripts/generateLocales.ts')
| -rw-r--r-- | scripts/generateLocales.ts | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/scripts/generateLocales.ts b/scripts/generateLocales.ts index d5540672..37f21ec9 100644 --- a/scripts/generateLocales.ts +++ b/scripts/generateLocales.ts @@ -82,6 +82,7 @@ function removeIndexTs(files: string[]): string[] { if (index !== -1) { files.splice(index, 1); } + return files; } @@ -152,6 +153,7 @@ function tryLoadLocalesMainIndexFile(pathModules: string): LocaleDefinition { console.error(`Failed to load ${pathModules} or manually parse it.`, e); } } + return localeDef; } @@ -177,6 +179,7 @@ function generateLocalesIndexFile( )}';` ); } + content.push( ...modules.map((m) => `import ${escapeImport(m)} from './${m}';`) ); |
