From afd733024bf6cc15df2766be7c8dbf88fc30416c Mon Sep 17 00:00:00 2001 From: Sam Atkins Date: Wed, 20 Mar 2024 11:21:54 +0000 Subject: [PATCH] Fix some i18n-related typos --- src/UI/UIDesktop.js | 6 +++--- src/i18n/i18n.js | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) 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){