浏览代码

Add local to url

Xiayucheng1212 1 年之前
父节点
当前提交
916e1bb95c
共有 1 个文件被更改,包括 3 次插入0 次删除
  1. 3 0
      src/helpers.js

+ 3 - 0
src/helpers.js

@@ -1756,6 +1756,9 @@ window.launch_app = async (options)=>{
             }
         }
 
+        // Add locale to URL
+        iframe_url.searchParams.append('puter.locale', window.locale);
+
         // Add options.args to URL
         iframe_url.searchParams.append('puter.args', JSON.stringify(options.args ?? {}));