MCPcopy Create free account
hub / github.com/MCSManager/MCSManager / getInitLanguage

Function getInitLanguage

frontend/src/lang/i18n.ts:143–150  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

141
142// Only for first install page
143const getInitLanguage = (): string => {
144 const curLang = String(i18n.global.locale).toLowerCase();
145 const lang = searchSupportLanguage(curLang);
146 if (lang !== "zh_cn" && lang !== "zh_tw") {
147 return "en_us";
148 }
149 return lang;
150};
151
152const isCN = () => {
153 return (

Callers

nothing calls this directly

Calls 1

searchSupportLanguageFunction · 0.85

Tested by

no test coverage detected