From ec2dc87b877612ec9cccd10fdc6a93293409a0ce Mon Sep 17 00:00:00 2001 From: Starman <30315137+Starman3787@users.noreply.github.com> Date: Tue, 17 Sep 2024 11:15:25 +0100 Subject: [PATCH] provide export for valid languages --- example.js | 3 ++- index.js | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/example.js b/example.js index 28615b7..aa2c420 100644 --- a/example.js +++ b/example.js @@ -1,4 +1,5 @@ -import languages from "./index.js"; +import languages, { validLanguages } from "./index.js"; +console.log(validLanguages); const language = "en_pr"; diff --git a/index.js b/index.js index ce4c0a8..bc57165 100644 --- a/index.js +++ b/index.js @@ -1,4 +1,4 @@ -const validLanguages = Object.values( +export const validLanguages = Object.values( (await import("./bot/languages.json", { with: { type: "json" } })).default ).flat();