Updated translations source

This commit is contained in:
Lowly 2024-08-21 00:23:20 +07:00
parent 2adf7c249d
commit e9c58a3606

View file

@ -104,7 +104,7 @@ async function loadTranslations() {
if (localtranslations) {
translations = JSON.parse(localtranslations);
} else {
const response = await fetch("https://github.com/")
const response = await fetch("https://raw.githubusercontent.com/L0w1y/JBKF/main/translations.json")
if (!response.ok) {
translations = {
"en" : {
@ -116,22 +116,9 @@ async function loadTranslations() {
}
} else {
translations = await response.json();
localStorage.setItem("translations", JSON.stringify(translations));
}
}
// const response = await fetch("https://github.com/");
// if (!response.ok) {
// translationsFound = false;
// translations = {
// "en" : {
// "permanentLicense": "Get Permanent License",
// "twoYearsLicense": "Get Two Years License",
// "notMarketPlugin": "This plugin is not a market-paid plugin!",
// "copiedToClipboard": "License key has been copied to your clipboard."
// }
// }
// } else {
// translations = await response.json();
// }
}
function getUserLanguage() {