Skip to content

Commit

Permalink
add export to include correct language code
Browse files Browse the repository at this point in the history
  • Loading branch information
Starman3787 committed Sep 17, 2024
1 parent ec2dc87 commit 5cea05e
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions index.js
Original file line number Diff line number Diff line change
@@ -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;
Expand Down

0 comments on commit 5cea05e

Please sign in to comment.