MCPcopy Index your code
hub / github.com/hoothin/UserScripts / initLang

Function initLang

Picviewer CE+/dist.user.js:11930–11935  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

11928 var debug = console.log.bind(console);
11929 var lang;
11930 function initLang(){
11931 let customLang=storage.getItem("customLang")||'auto';
11932 if(customLang=="auto")lang = navigator.appName=="Netscape"?navigator.language:navigator.userLanguage;
11933 else lang=customLang;
11934 setLang(lang);
11935 }
11936 function i18n(key,inserts){
11937 var result=i18nData[key],i;
11938 if(inserts){

Callers 2

initFunction · 0.70

Calls 1

setLangFunction · 0.70

Tested by

no test coverage detected