MCPcopy Create free account
hub / github.com/hydro-dev/Hydro / processLog

Function processLog

install/install.ts:146–146  ·  view source on GitHub ↗
(orig)

Source from the content-addressed store, hash-verified

144let locale = (process.env.LANG?.includes('zh') || process.env.LOCALE?.includes('zh')) ? 'zh' : 'en';
145if (process.env.TERM === 'linux') locale = 'en';
146const processLog = (orig) => (str, ...args) => (orig(locales[locale][str] || str, ...args), 0);
147const log = {
148 info: processLog(console.log),
149 warn: processLog(console.warn),

Callers 1

install.tsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected