Fixing i18n path #57

Merged
tonitch merged 1 commits from tonitch/front/fix/i18n/location into master 2024-03-06 14:50:53 +01:00

View File

@ -61,7 +61,7 @@ export async function loadLangs(lang){
lang = lang != null ? lang : getCookie("lang");
lang = lang != "" ? lang : default_lang;
const filename = "./i18n/" + lang.toUpperCase() + ".txt";
const filename = "/i18n/" + lang.toUpperCase() + ".txt";
const content = await (await fetch(filename)).text();
const lines = content.split("\n");