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();