MCPcopy
hub / github.com/hoothin/UserScripts / i18n

Function i18n

Picviewer CE+/Picviewer CE+.user.js:11936–11945  ·  view source on GitHub ↗
(key,inserts)

Source from the content-addressed store, hash-verified

11934 setLang(lang);
11935 }
11936 function i18n(key,inserts){
11937 var result=i18nData[key],i;
11938 if(inserts){
11939 if(typeof inserts!="object")inserts=[inserts];
11940 for(i=0;i<inserts.length;i++){
11941 result=result.replace("#t#",inserts[i]);
11942 }
11943 }
11944 return result?result:key;
11945 }
11946 var defaultSearchData=`Google | https://www.google.com/searchbyimage?safe=off&sbisrc=1&image_url=#t#
11947Yandex | https://yandex.com/images/search?source=collections&rpt=imageview&url=#t#
11948SauceNAO | https://saucenao.com/search.php?db=999&url=#t#

Callers 8

initFunction · 0.70
filterUrlFunction · 0.70
fullScreenChangedFunction · 0.70
createSpanMarkFunction · 0.70
searchBaiduFunction · 0.70
searchGoogleFunction · 0.70
searchTineyeFunction · 0.70
searchNextFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected