mirror of
https://github.com/HeyPuter/puter.git
synced 2025-01-23 14:20:22 +08:00
Remove logging, simplify listing supported languages
This commit is contained in:
parent
2f63c4cadf
commit
926070ce26
@ -1131,7 +1131,6 @@ $(document).on('click', '.user-options-menu-btn', async function(e){
|
||||
}
|
||||
}
|
||||
});
|
||||
console.log(supoprtedLanguagesItems)
|
||||
|
||||
UIContextMenu({
|
||||
id: 'user-options-menu',
|
||||
|
@ -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){
|
||||
|
Loading…
Reference in New Issue
Block a user