Skip to content

Commit

Permalink
Update example.js
Browse files Browse the repository at this point in the history
  • Loading branch information
Starman3787 committed Sep 17, 2024
1 parent cc2f0f9 commit 22cb9d9
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion example.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import languages, { validLanguages } from "./index.js";
import languages, { getDiscordLocaleCode, getQuarkLocaleCode, validLanguages } from "./index.js";
console.log(validLanguages);

const language = "en_pr";
Expand All @@ -21,3 +21,6 @@ try {
console.log((await languages(language, true).slash_commands.ping).name);

console.log(Object.keys(await languages("en_gb", true).slash_commands.help));

console.log(getQuarkLocaleCode("en-GB"));
console.log(getDiscordLocaleCode("en_gb"));

0 comments on commit 22cb9d9

Please sign in to comment.