set default language to English

This commit is contained in:
Nariman Jelveh 2024-03-17 16:02:46 -07:00
parent 86080b0ccf
commit 5b9577c31e

View File

@ -47,9 +47,9 @@ window.initgui = async function(){
puter.setAPIOrigin(api_origin);
// determine locale
// const userLang = navigator.language || navigator.userLanguage || 'en';
// window.locale = userLang?.split('-')[0] ?? 'en';
window.locale = 'ko';
const userLang = navigator.language || navigator.userLanguage || 'en';
window.locale = userLang?.split('-')[0] ?? 'en';
// Checks the type of device the user is on (phone, tablet, or desktop).
// Depending on the device type, it sets a class attribute on the body tag
// to style or script the page differently for each device type.