Skip to content

Function: cliLanguage() ​

ts
function cliLanguage(
   flag, 
   env?, 
   locale?
): Language;

Defined in: src/cli.ts:166

The language the command line speaks: --lang, or the environment's, or the system's; Japanese for ja…, English for anything else.

Parameters ​

flag ​

string | undefined

env? ​

Record<string, string | undefined> = {}

locale? ​

string

Returns ​

Language

MIT © John Morris