MCPcopy
hub / github.com/ChinaGodMan/UserScripts / getTranslations

Function getTranslations

web-clipper/web-clipper.user.js:385–392  ·  view source on GitHub ↗
(lang)

Source from the content-addressed store, hash-verified

383 }
384 }
385 const getTranslations = (lang) => {
386 for (const key in translations) {
387 if (key === lang || key.split(',').includes(lang)) {
388 return translations[key]
389 }
390 }
391 return translations['en']
392 }
393 const translate = new Proxy(
394 function (key) {
395 const lang = userLang

Callers 2

getFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected