Remove logging, simplify listing supported languages

This commit is contained in:
Sondre Njåstad 2024-03-18 16:17:03 +01:00
parent 2f63c4cadf
commit 926070ce26
2 changed files with 1 additions and 8 deletions

View File

@ -1131,7 +1131,6 @@ $(document).on('click', '.user-options-menu-btn', async function(e){
}
}
});
console.log(supoprtedLanguagesItems)
UIContextMenu({
id: 'user-options-menu',

View File

@ -1,12 +1,6 @@
import translations from './translations/translations.js';
window.ListSupportedLanugages = function () {
var result = [];
Object.keys(translations).forEach(function (key) {
result.push(translations[key]);
});
return result;
};
window.ListSupportedLanugages = () => Object.keys(translations).map(lang => translations[lang]);
window.i18n = function (key, replacements = [], encode_html = true) {
if(typeof replacements === 'boolean' && encode_html === undefined){