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

Function isCN

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

Source from the content-addressed store, hash-verified

150};
151
152const isCN = () => {
153 return (
154 getCurrentLang() === "zh_cn" ||
155 getCurrentLang() === "zh_tw" ||
156 window.navigator.language.includes("zh")
157 );
158};
159
160const isEN = () => {
161 return getCurrentLang() === "en_us";

Callers

nothing calls this directly

Calls 1

getCurrentLangFunction · 0.85

Tested by

no test coverage detected