From ccaed6beffa87d78b93eda11f71f837d80847f81 Mon Sep 17 00:00:00 2001 From: Ryan Yin Date: Sat, 19 Sep 2026 16:15:35 +0800 Subject: [PATCH] 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. --- modules/nixos/base/i18n.nix | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/modules/nixos/base/i18n.nix b/modules/nixos/base/i18n.nix index 2fde6d61..a420a6d6 100644 --- a/modules/nixos/base/i18n.nix +++ b/modules/nixos/base/i18n.nix @@ -2,18 +2,14 @@ # Set your time zone. time.timeZone = "Asia/Shanghai"; - # Select internationalisation properties. + # 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_ADDRESS = "zh_CN.UTF-8"; - LC_IDENTIFICATION = "zh_CN.UTF-8"; LC_MEASUREMENT = "zh_CN.UTF-8"; LC_MONETARY = "zh_CN.UTF-8"; - LC_NAME = "zh_CN.UTF-8"; - LC_NUMERIC = "zh_CN.UTF-8"; LC_PAPER = "zh_CN.UTF-8"; - LC_TELEPHONE = "zh_CN.UTF-8"; - LC_TIME = "zh_CN.UTF-8"; }; }