MCPcopy Create free account
hub / github.com/ChinaGodMan/UserScripts / getTranslations

Function getTranslations

script-finder-plus/script-finder-plus.user.js:192–199  ·  view source on GitHub ↗
(lang)

Source from the content-addressed store, hash-verified

190 }
191 }
192 const getTranslations = (lang) => {
193 for (const key in translations) {
194 if (key === lang || key.split(',').includes(lang)) {
195 return translations[key]
196 }
197 }
198 return translations['en']
199 }
200 const translate = new Proxy(
201 function (key) {
202 const lang = userLang

Callers 2

getFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected