1LOCALE.CONF(5) locale.conf LOCALE.CONF(5)
2
3
4
6 locale.conf - Configuration file for locale settings
7
9 /etc/locale.conf
10
12 The /etc/locale.conf file configures system-wide locale settings. It is
13 read at early boot by systemd(1).
14
15 The format of locale.conf is a newline-separated list of
16 environment-like shell-compatible variable assignments, ignoring
17 comments and empty lines. It is possible to source the configuration
18 from shell scripts, however, beyond mere variable assignments, no shell
19 features are supported, allowing applications to read the file without
20 implementing a shell compatible execution engine. See os-release(5) for
21 a detailed description of the format.
22
23 Note that the kernel command line options locale.LANG=,
24 locale.LANGUAGE=, locale.LC_CTYPE=, locale.LC_NUMERIC=,
25 locale.LC_TIME=, locale.LC_COLLATE=, locale.LC_MONETARY=,
26 locale.LC_MESSAGES=, locale.LC_PAPER=, locale.LC_NAME=,
27 locale.LC_ADDRESS=, locale.LC_TELEPHONE=, locale.LC_MEASUREMENT=,
28 locale.LC_IDENTIFICATION= may be used to override the locale settings
29 at boot.
30
31 The locale settings configured in /etc/locale.conf are system-wide and
32 are inherited by every service or user, unless overridden or unset by
33 individual programs or users.
34
35 Depending on the operating system, other configuration files might be
36 checked for locale configuration as well, however only as fallback.
37
38 /etc/locale.conf can be updated using systemd-localed.service(8).
39 localectl(1) may be used to alter the settings in this file during
40 runtime from the command line. Use systemd-firstboot(1) to customize
41 them on mounted (but not booted) system images.
42
44 The following locale settings may be set using /etc/locale.conf: LANG=,
45 LANGUAGE=, LC_CTYPE=, LC_NUMERIC=, LC_TIME=, LC_COLLATE=, LC_MONETARY=,
46 LC_MESSAGES=, LC_PAPER=, LC_NAME=, LC_ADDRESS=, LC_TELEPHONE=,
47 LC_MEASUREMENT=, LC_IDENTIFICATION=. Note that LC_ALL may not be
48 configured in this file. For details about the meaning and semantics of
49 these settings, refer to locale(7).
50
52 Example 1. German locale with English messages
53
54 /etc/locale.conf:
55
56 # Custom settings
57
58 LANG=de_DE.UTF-8
59 LC_MESSAGES=en_US.UTF-8
60
62 systemd(1), locale(7), localectl(1), systemd-localed.service(8),
63 systemd-firstboot(1)
64
65
66
67systemd 254 LOCALE.CONF(5)