locale

package
v0.1.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 4, 2026 License: MIT Imports: 5 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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

View Source
const (
	English  = "en"
	Japanese = "ja"
)

Languages.

View Source
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

func Review(lang, text string) string

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

func UserSetting(name string) string

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL