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 basic file format of locale.conf is a newline-separated list of
16 environment-like shell-compatible variable assignments. It is possible
17 to source the configuration from shell scripts, however, beyond mere
18 variable assignments, no shell features are supported, allowing
19 applications to read the file without implementing a shell compatible
20 execution engine.
21
22 Note that the kernel command line options locale.LANG=,
23 locale.LANGUAGE=, locale.LC_CTYPE=, locale.LC_NUMERIC=,
24 locale.LC_TIME=, locale.LC_COLLATE=, locale.LC_MONETARY=,
25 locale.LC_MESSAGES=, locale.LC_PAPER=, locale.LC_NAME=,
26 locale.LC_ADDRESS=, locale.LC_TELEPHONE=, locale.LC_MEASUREMENT=,
27 locale.LC_IDENTIFICATION= may be used to override the locale settings
28 at boot.
29
30 The locale settings configured in /etc/locale.conf are system-wide and
31 are inherited by every service or user, unless overridden or unset by
32 individual programs or individual users.
33
34 Depending on the operating system, other configuration files might be
35 checked for locale configuration as well, however only as fallback.
36
37 localectl(1) may be used to alter the settings in this file during
38 runtime from the command line. Use systemd-firstboot(1) to initialize
39 them on mounted (but not booted) system images.
40
42 The following locale settings may be set using /etc/locale.conf: LANG=,
43 LANGUAGE=, LC_CTYPE=, LC_NUMERIC=, LC_TIME=, LC_COLLATE=, LC_MONETARY=,
44 LC_MESSAGES=, LC_PAPER=, LC_NAME=, LC_ADDRESS=, LC_TELEPHONE=,
45 LC_MEASUREMENT=, LC_IDENTIFICATION=. Note that LC_ALL may not be
46 configured in this file. For details about the meaning and semantics of
47 these settings, refer to locale(7).
48
50 Example 1. German locale with English messages
51
52 /etc/locale.conf:
53
54 LANG=de_DE.UTF-8
55 LC_MESSAGES=en_US.UTF-8
56
58 systemd(1), locale(7), localectl(1), systemd-localed.service(8),
59 systemd-firstboot(1)
60
61
62
63systemd 219 LOCALE.CONF(5)