Documentation
¶
Overview ¶
Package locale is the language a person reads KairoCode's reviews in: the words of a flow's review (what it reaches, what a try did), not its labels (REACHES, models), which stay as they are, as a pull request's do.
Index ¶
Constants ¶
const ( English = "en" Japanese = "ja" )
Languages.
const Env = "KAIROCODE_LANG"
Env names the language over all else (KAIROCODE_LANG=ja).
Variables ¶
This section is empty.
Functions ¶
func Lang ¶
func Lang() string
Lang is the language to show: KAIROCODE_LANG, else "language" in the user's kairocode.json, else the terminal's locale (LC_ALL, LC_MESSAGES, LANG); English where none says.
func Review ¶
Review is text of a review (a line at a time) in lang. Only KairoCode's own words are put in another: a line that quotes the script (a string in quotes) or is a block shown as it is (indented eight spaces: what an agent replied, what a call would have been given) is left as it is, as what is approved must read as what is written and sent.
func UserSetting ¶
UserSetting is the string setting name in the user's kairocode.json ($XDG_CONFIG_HOME/kairocode, else ~/.config/kairocode); "" if none. Only the user's: a project does not set what is the reader's.
Types ¶
This section is empty.