summaryrefslogtreecommitdiff
path: root/modules/locale.nix
blob: 097ebc747755430199cf9e93cb46ae57a9a67853 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
{ ... }:
let
  language_locale = "en_GB.UTF-8";
  actual_locale = "nl_NL.UTF-8";
  extraLocales = map (l: "${l}/UTF-8") ([ actual_locale ] ++ [ "pl_PL.UTF-8" ]);
in
{
  i18n = {
    defaultLocale = language_locale;
    extraLocales = extraLocales;
    extraLocaleSettings = {
      LC_CTYPE = language_locale;
      LC_ADDRESS = actual_locale;
      LC_MESSAGES = language_locale;
      LC_MONETARY = actual_locale;
      LC_NAME = actual_locale;
      LC_NUMERIC = actual_locale;
      LC_PAPER = actual_locale;
      LC_TELEPHONE = actual_locale;
      LC_TIME = actual_locale;
      LC_COLLATE = actual_locale;
    };
  };
}