mirror of
https://github.com/HeyPuter/puter
synced 2024-11-15 06:15:47 +00:00
Fix some i18n-related typos
This commit is contained in:
parent
0d8039eddc
commit
afd733024b
@ -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
|
||||||
|
@ -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){
|
||||||
|
Loading…
Reference in New Issue
Block a user