Files
nix-config/modules/nixos/base/i18n.nix
T
Ryan Yin ccaed6beff chore(i18n): keep only China-specific locale overrides
English stays the default (LANG=en_US.UTF-8). Drop the Chinese overrides for
LC_TIME, LC_NUMERIC, LC_ADDRESS, LC_NAME, LC_TELEPHONE and LC_IDENTIFICATION:
LC_NUMERIC matches en_US, the others are effectively unused, and LC_TIME forced
Chinese date and weekday names.

Keep zh_CN only where the en_US default is wrong for China: metric units, A4
paper and CNY.
2026-09-19 16:15:35 +08:00

16 lines
443 B
Nix

{
# Set your time zone.
time.timeZone = "Asia/Shanghai";
# English is the default. Chinese overrides only the categories where the
# en_US default is factually wrong for China (metric, A4, CNY); everything
# else, including date/time names, stays English.
i18n.defaultLocale = "en_US.UTF-8";
i18n.extraLocaleSettings = {
LC_MEASUREMENT = "zh_CN.UTF-8";
LC_MONETARY = "zh_CN.UTF-8";
LC_PAPER = "zh_CN.UTF-8";
};
}