Fix some i18n-related typos

This commit is contained in:
Sam Atkins 2024-03-20 11:21:54 +00:00
parent 0d8039eddc
commit afd733024b
2 changed files with 4 additions and 4 deletions

View File

@ -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 { return {
html: lang.name, html: lang.name,
icon: window.locale === lang.code ? '✓' : '', icon: window.locale === lang.code ? '✓' : '',
@ -1198,7 +1198,7 @@ $(document).on('click', '.user-options-menu-btn', async function(e){
//-------------------------------------------------- //--------------------------------------------------
{ {
html: i18n('change_language'), html: i18n('change_language'),
items: supoprtedLanguagesItems items: supportedLanguagesItems
}, },
//-------------------------------------------------- //--------------------------------------------------
// Contact Us // Contact Us

View File

@ -18,7 +18,7 @@
*/ */
import translations from './translations/translations.js'; 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) { window.i18n = function (key, replacements = [], encode_html = true) {
if(typeof replacements === 'boolean' && encode_html === undefined){ if(typeof replacements === 'boolean' && encode_html === undefined){