2024-06-28 18:38:36 -07:00
|
|
|
{ lib, config, ... }:
|
2024-06-28 18:38:03 -07:00
|
|
|
|
|
|
|
let
|
|
|
|
cfg = config.snowhawk.i18n;
|
|
|
|
in
|
|
|
|
{
|
|
|
|
options.snowhawk.i18n = {
|
|
|
|
enable = lib.mkEnableOption "i18n";
|
|
|
|
};
|
|
|
|
|
|
|
|
config = lib.mkIf cfg.enable {
|
|
|
|
# Select internationalisation properties.
|
|
|
|
i18n.defaultLocale = "en_US.UTF-8";
|
|
|
|
|
|
|
|
i18n.extraLocaleSettings = {
|
|
|
|
LC_ADDRESS = "en_US.UTF-8";
|
|
|
|
LC_IDENTIFICATION = "en_US.UTF-8";
|
|
|
|
LC_MEASUREMENT = "en_US.UTF-8";
|
|
|
|
LC_MONETARY = "en_US.UTF-8";
|
|
|
|
LC_NAME = "en_US.UTF-8";
|
|
|
|
LC_NUMERIC = "en_US.UTF-8";
|
|
|
|
LC_PAPER = "en_US.UTF-8";
|
|
|
|
LC_TELEPHONE = "en_US.UTF-8";
|
|
|
|
LC_TIME = "en_US.UTF-8";
|
|
|
|
};
|
|
|
|
};
|
|
|
|
}
|