diff --git a/src/UI/UIDesktop.js b/src/UI/UIDesktop.js index ccb2121e..936ba9b9 100644 --- a/src/UI/UIDesktop.js +++ b/src/UI/UIDesktop.js @@ -1146,9 +1146,9 @@ $(document).on('click', '.user-options-menu-btn', async function(e){ } // ------------------------------------------- - // Load avaialble languages + // Load available languages // ------------------------------------------- - const supoprtedLanguagesItems = ListSupportedLanugages().map(lang => { + const supportedLanguagesItems = ListSupportedLanguages().map(lang => { return { html: lang.name, icon: window.locale === lang.code ? '✓' : '', @@ -1198,7 +1198,7 @@ $(document).on('click', '.user-options-menu-btn', async function(e){ //-------------------------------------------------- { html: i18n('change_language'), - items: supoprtedLanguagesItems + items: supportedLanguagesItems }, //-------------------------------------------------- // Contact Us diff --git a/src/i18n/i18n.js b/src/i18n/i18n.js index 6adcd5f0..14b46873 100644 --- a/src/i18n/i18n.js +++ b/src/i18n/i18n.js @@ -18,7 +18,7 @@ */ import translations from './translations/translations.js'; -window.ListSupportedLanugages = () => Object.keys(translations).map(lang => translations[lang]); +window.ListSupportedLanguages = () => Object.keys(translations).map(lang => translations[lang]); window.i18n = function (key, replacements = [], encode_html = true) { if(typeof replacements === 'boolean' && encode_html === undefined){