---
name: "cdist-type__locale"
section: "7"
platform: "linux"
package: "cdist"
version: "7.0.0-5"
release: "Debian 13 (Trixie)"
platforms: ["linux"]
url: "https://new.carta.tech/cdist-type__locale"
---

# cdist-type\_\_locale(7)

Configure locales

## NAME

cdist-type\_\_locale - Configure locales

## DESCRIPTION

This cdist type allows you to setup locales. On systems that don't support locale setting like alpine/musl libc, it is a no-op.

## OPTIONAL PARAMETERS

- **state**

  'present' or 'absent', defaults to present

## EXAMPLES

```
# Add locale de_CH.UTF-8
__locale de_CH.UTF-8
# Same as above, but more explicit
__locale de_CH.UTF-8 --state present
# Remove colourful British English
__locale en_GB.UTF-8 --state absent
```

## SEE ALSO

[**locale**(1)](/locale/1.md), [**localedef**(1)](/localedef/1.md), [**cdist-type\_\_locale\_system**(7)](/cdist-type__locale_system/7.md)

## AUTHORS

Nico Schottelius \<*nico-cdist--@--schottelius.org*\>

## COPYING

Copyright (C) 2013-2019 Nico Schottelius. Free use of this software is granted under the terms of the GNU General Public License version 3 or later (GPLv3+).

## COPYRIGHT

ungleich GmbH 2021
