소스 검색

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
         // Add options.args to URL
         iframe_url.searchParams.append('puter.args', JSON.stringify(options.args ?? {}));
         iframe_url.searchParams.append('puter.args', JSON.stringify(options.args ?? {}));