mirror of
https://github.com/ryan4yin/nix-config.git
synced 2026-11-21 15:01:28 +01:00
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.
16 lines
443 B
Nix
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";
|
|
};
|
|
}
|