Omarchy

How-To: Use ISO Dates and Your Own Number Formats on Linux Without Changing Your Language

Leave a comment

Omarchy’s upcoming Setup > Region menu will do this for you, but here’s how it works under the hood on any Linux box. The trick is that the locale is split into categories, and you can set them one at a time.

1. See what you have now

locale
locale -a

The first shows each LC_ variable. The second lists the locales that are generated and ready to use.

2. Try a format before you commit

LC_TIME=en_DK.UTF-8 date +%x
LC_TIME=en_US.UTF-8 date +%x

en_DK is the classic trick for ISO-style dates (2026-11-20) with English text. If it says the locale isn’t available, generate it first.

3. Generate the locale (Arch-based systems)

Uncomment the line you want, such as en_DK.UTF-8 UTF-8, in /etc/locale.gen, then run:

sudo locale-gen

4. Set just the categories you want

sudo localectl set-locale LANG=en_US.UTF-8 LC_TIME=en_DK.UTF-8 LC_PAPER=en_DK.UTF-8 LC_MEASUREMENT=en_DK.UTF-8

Leave LANG and LC_MESSAGES alone so menus stay in your language, and don’t set LC_ALL, which overrides everything. Log out and back in, then run locale again to check. On Omarchy, once Region ships, use the menu instead so your session and Omarchy agree.

God Bless, and Happy hacking!

References & Further Reading

Subscribe (RSS) Follow How-Tos via RSS

Leave a note

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.