Skip to content

Loading resources/Changing app language #7168

Closed Answered by eyyyyyyy3
eyyyyyyy3 asked this question in Q&A
Discussion options

You must be logged in to vote

Fixed it xD.
let lang = "";
async function loadLanguage() {
const resourcePath = await resolveResource("lang/de.json")
lang = JSON.parse(await readTextFile(resourcePath));
console.log(lang);
};
loadLanguage();

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by eyyyyyyy3
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant