mirror of
https://github.com/HeyPuter/puter.git
synced 2026-07-08 08:12:15 +00:00
set default language to English
This commit is contained in:
+3
-3
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user