package
Version:
v1.3.1
Opens a new window with list of versions in this module.
Published: Oct 16, 2026
License: Apache-2.0
Opens a new window with license information.
Imports: 4
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
Package syslang detects the system UI language as a BCP 47 tag.
Detect returns the OS language where available, else the first non-empty
of LC_ALL, LC_MESSAGES, LANG; "en" when nothing valid is found.
Normalize turns a POSIX locale ("zh_CN.UTF-8") into a canonical BCP 47 tag
("zh-CN"), or "" for empty, "C", "POSIX" and anything that is not valid.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.