Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AllMessages ¶
AllMessages returns message maps for all supported languages. Used to send both languages to the dashboard for client-side switching.
func DetectCLI ¶
func DetectCLI() string
DetectCLI detects language from environment variables (LANG, LC_ALL, LC_MESSAGES). Returns "ja" for Japanese, "en" for everything else.
func DetectHTTP ¶
DetectHTTP detects language from an Accept-Language header value. Returns "ja" for Japanese, "en" for everything else.
func Init ¶
func Init()
Init detects the CLI language from environment variables and loads messages. Safe to call multiple times; detection runs only once.
func Messages ¶
Messages returns the full message map for the given language. Used to inject translations into dashboard templates as JSON.
Types ¶
This section is empty.