From 51a7bab9ff574e3dffe503eb0eaf5fbaf5050111 Mon Sep 17 00:00:00 2001 From: ThatOneCalculator Date: Fri, 16 Jun 2023 14:19:42 -0700 Subject: [PATCH] fix --- locales/index.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/locales/index.js b/locales/index.js index ac8ba19cfa..62e55e7e5c 100644 --- a/locales/index.js +++ b/locales/index.js @@ -21,15 +21,15 @@ const merge = (...args) => fs.readdirSync(__dirname).forEach((file) => { if (file.includes(".yml")) { - locale = file.slice(0, file.indexOf(".")); - languages.push(locale); + file = file.slice(0, file.indexOf(".")); + languages.push(file); } }); fs.readdirSync(__dirname + "/../custom/locales").forEach((file) => { if (file.includes(".yml")) { - customLocale = file.slice(0, file.indexOf(".")); - languages_custom.push(customLocale); + file = file.slice(0, file.indexOf(".")); + languages_custom.push(file); } });