MCPcopy
hub / github.com/SBoudrias/Inquirer.js / clearLocaleEnv

Function clearLocaleEnv

packages/i18n/test/auto-detect.test.ts:9–13  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

7const envVars = ['LANGUAGE', 'LC_ALL', 'LC_MESSAGES', 'LANG'] as const;
8
9function clearLocaleEnv() {
10 for (const key of envVars) {
11 process.env[key] = undefined;
12 }
13}
14
15describe('auto locale detection', () => {
16 beforeEach(() => {

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected