Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
NormanTUD committed Dec 18, 2024
1 parent df5fd11 commit 5c74d2c
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions translations.js
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ async function set_lang(la) {

setOptimizerTooltips();
} else {
err(`Language unknown: ${la}`);
void(0); err(`Language unknown: ${la}`);
}
}

Expand All @@ -64,7 +64,7 @@ function get_lang_cookie() {
if(Object.keys(language).includes(cookieValue)) {
return cookieValue;
} else {
err(`Invalid language cookie value: ${cookieValue} not in language. Valid keys: ${Object.keys(language).join(", ")}`);
void(0); err(`Invalid language cookie value: ${cookieValue} not in language. Valid keys: ${Object.keys(language).join(", ")}`);
set_lang_cookie(_default_language);
}
}
Expand All @@ -80,7 +80,7 @@ function set_lang_cookie(value, days) {
if(Object.keys(language).includes(value)) {
document.cookie = lang_cookie_name + "=" + cookieValue;
} else {
err(`Invalid language cookie value: ${value} not in language. Valid keys: ${Object.keys(language).join(", ")}`);
void(0); err(`Invalid language cookie value: ${value} not in language. Valid keys: ${Object.keys(language).join(", ")}`);
}
}

Expand All @@ -91,7 +91,7 @@ async function update_translations(force=0) {
const translationKey = element.classList[0].substring(12);

if(!lang) {
err("lang is not defined! Something is seriously wrong here...");
void(0); err("lang is not defined! Something is seriously wrong here...");
return;
}

Expand Down Expand Up @@ -139,7 +139,7 @@ async function update_lang(la) {

setOptimizerTooltips();
} else {
err(`Language unknown: ${la}`);
void(0); err(`Language unknown: ${la}`);
}
}

Expand Down

0 comments on commit 5c74d2c

Please sign in to comment.