Skip to content

Commit

Permalink
provide export for valid languages
Browse files Browse the repository at this point in the history
  • Loading branch information
Starman3787 committed Sep 17, 2024
1 parent 137ee67 commit ec2dc87
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion example.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import languages from "./index.js";
import languages, { validLanguages } from "./index.js";
console.log(validLanguages);

const language = "en_pr";

Expand Down
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
const validLanguages = Object.values(
export const validLanguages = Object.values(
(await import("./bot/languages.json", { with: { type: "json" } })).default
).flat();

Expand Down

0 comments on commit ec2dc87

Please sign in to comment.