MCPcopy Create free account
hub / github.com/Bistutu/FluentRead / parseLanguage

Function parseLanguage

userscripts.js:360–362  ·  view source on GitHub ↗
(language)

Source from the content-addressed store, hash-verified

358 to: {'zh-Hans': '简体中文', 'en': '英语',},
359 // 解析语言种类
360 parseLanguage(language) {
361 return langManager[language] || language || 'en';
362 },
363 // set
364 setFromTo(from, to) {
365 GM_setValue('from', from);

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected