Locales: Difference between revisions
m Add category, fix formatting |
m fix broken supportedLocales to extraLocales |
||
| (One intermediate revision by one other user not shown) | |||
| Line 6: | Line 6: | ||
# Optionally (BEWARE: requires a different format with the added /UTF-8) | # Optionally (BEWARE: requires a different format with the added /UTF-8) | ||
i18n. | i18n.extraLocales = ["es_VE.UTF-8/UTF-8"]; | ||
# Optionally | # Optionally | ||
| Line 28: | Line 28: | ||
{{nixos:option|i18n.defaultLocale}} will set the language and the character set systemwide to the desired value. Specifically, defaultLocale will define the <code>LANG</code> environment variable. | {{nixos:option|i18n.defaultLocale}} will set the language and the character set systemwide to the desired value. Specifically, defaultLocale will define the <code>LANG</code> environment variable. | ||
In addition, with {{nixos:option|i18n. | In addition, with {{nixos:option|i18n.extraLocales}}, the system will also support Venezuelan Spanish. The value <code>"all"</code> means that all locales supported by Glibc will be installed. A full list of supported locales can be found at https://sourceware.org/git/?p=glibc.git;a=blob;f=localedata/SUPPORTED. | ||
And in the {{nixos:option|i18n.extraLocaleSettings}}, it is possible to set the LC locales individually. This does allow fine-grained adjustments of the used locales. In the above example a mix of American English and Venezuelan Spanish is used. It is also possible to find these settings at [https://search.nixos.org/options NixOS options]. Just search for i18 locale. | And in the {{nixos:option|i18n.extraLocaleSettings}}, it is possible to set the LC locales individually. This does allow fine-grained adjustments of the used locales. In the above example a mix of American English and Venezuelan Spanish is used. It is also possible to find these settings at [https://search.nixos.org/options NixOS options]. Just search for i18 locale. | ||
{{note|The setting <code>i18n. | {{note|The setting <code>i18n.extraLocales</code> requires a different format to <code>i18n.extraLocaleSettings</code> with the added <code>/UTF-8</code>. 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 == | ||