locale: Support configuring formats separately

This commit is contained in:
uumas
2025-02-15 11:42:20 +02:00
parent b983882add
commit 52862ddfdd
2 changed files with 12 additions and 7 deletions

View File

@@ -7,6 +7,8 @@ gen_locales:
- en_US.UTF-8 - en_US.UTF-8
- en_GB.UTF-8 - en_GB.UTF-8
lang: en_US.UTF-8 locale_gen_locales: "{{ gen_locales }}"
lc_messages: "{{ lang }}"
language: "en_US:en" locale_lang: "{{ lang | default('en_US.UTF-8') }}"
locale_lc_messages: "{{ locale_lang }}"
locale_formats: "{{ locale_lang }}"

View File

@@ -1,6 +1,9 @@
# {{ ansible_managed }} # {{ ansible_managed }}
LANG="{{ lang }}" LANG={{ locale_lang }}
LC_MESSAGES="{{ lc_messages }}" LC_MESSAGES={{ locale_lc_messages }}
LANGUAGE="{{ language }}" LC_NUMERIC={{ locale_formats }}
LC_TIME={{ locale_formats }}
LC_MONETARY={{ locale_formats }}
LC_PAPER={{ locale_formats }}
LC_MEASUREMENT={{ locale_formats }}