mirror of
https://github.com/HeyPuter/puter.git
synced 2025-02-02 23:28:39 +08:00
set default language to English
This commit is contained in:
parent
86080b0ccf
commit
5b9577c31e
@ -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.
|
||||
|
Loading…
Reference in New Issue
Block a user