From 5cea05e5877f17a7f62220b8428ca23ebb2d77d0 Mon Sep 17 00:00:00 2001 From: Starman <30315137+Starman3787@users.noreply.github.com> Date: Tue, 17 Sep 2024 11:20:56 +0100 Subject: [PATCH] add export to include correct language code --- index.js | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/index.js b/index.js index bc57165..fe432aa 100644 --- a/index.js +++ b/index.js @@ -1,6 +1,8 @@ -export const validLanguages = Object.values( - (await import("./bot/languages.json", { with: { type: "json" } })).default -).flat(); +export const locales = ( + await import("./bot/languages.json", { with: { type: "json" } }) +).default; + +export const validLanguages = Object.values(locales).flat(); const readObject = (obj, cursor = "") => { if (!obj) return undefined;