Locales: Difference between revisions
Document Locales with nix profile |
Add a note about the syntactic differences in setting the supported locales and the extra locale settings |
||
Line 1: | Line 1: | ||
== Notes when setting supportedLocales and extraLocaleSettings == | |||
Beaware when setting up your locale variables. The setting <code>i18n.supportedLocales</code> requires a different format to <code>i18n.extraLocaleSettings</code>. | |||
The setting <code>i18n.supportedLocales</code> requries the requires the language string '''with''' the added <code>/UTF-8</code> | |||
<syntaxhighlight lang="bash"> | |||
"en_US.UTF-8/UTF-8" | |||
"nl_NL.UTF-8/UTF-8" | |||
</syntaxhighlight> | |||
The setting <code>i18n.extraLocaleSettings</code>, however, requires the language string '''without''' any suffix. | |||
<syntaxhighlight lang="bash"> | |||
LC_MESSAGES = "en_US.UTF-8" | |||
LC_TIME = "de_DE.UTF-8" | |||
</syntaxhighlight>Otherwise, your locale settings will likely not work. | |||
== Troubleshooting when using nix on non-NixOS linux distributions == | == Troubleshooting when using nix on non-NixOS linux distributions == | ||