From 5b9577c31e71b472f66c6ceb5ce99fbf5719bfd1 Mon Sep 17 00:00:00 2001 From: Nariman Jelveh Date: Sun, 17 Mar 2024 16:02:46 -0700 Subject: [PATCH] set default language to English --- src/initgui.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/initgui.js b/src/initgui.js index 0295dcc8c..3166b1281 100644 --- a/src/initgui.js +++ b/src/initgui.js @@ -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.