aboutsummaryrefslogtreecommitdiff
path: root/scripts/generateLocales.ts
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/generateLocales.ts')
-rw-r--r--scripts/generateLocales.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/generateLocales.ts b/scripts/generateLocales.ts
index 81cf4331..36ca37c9 100644
--- a/scripts/generateLocales.ts
+++ b/scripts/generateLocales.ts
@@ -240,7 +240,7 @@ function updateLocaleFile(filePath: string): void {
if (lstatSync(filePath).isFile()) {
const pathParts = filePath
.substring(pathLocales.length + 1, filePath.length - 3)
- .split(/[\\\/]/);
+ .split(/[\\/]/);
const locale = pathParts[0];
pathParts.splice(0, 1);
updateLocaleFileHook(filePath, locale, pathParts);