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

Function toStandardLang

frontend/src/lang/i18n.ts:64–67  ·  view source on GitHub ↗
(lang?: string)

Source from the content-addressed store, hash-verified

62let i18n: I18n;
63
64export function toStandardLang(lang?: string) {
65 if (!lang) return "en_us";
66 return lang.replace("-", "_").toLowerCase();
67}
68
69export async function initInstallPageFlow(language: string) {
70 await updateSettings().execute({

Callers 5

updatePanelStatusFunction · 0.90
initI18nFunction · 0.85
searchSupportLanguageFunction · 0.85
setLanguageFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected