Skip to content

Add Setup > Region with Language, Formats and Timezone - #19358

Merged
dhh merged 6 commits into
quattrofrom
setup-region
Nov 19, 2026
Merged

dhh merged 6 commits into
quattrofrom
setup-region

Conversation

@dhh

@dhh dhh commented Nov 18, 2026 •

Copy link
Copy Markdown
Contributor

What changes

Adds Setup > Region, gathering how Omarchy speaks and how it writes things:

  • Language: the existing language picker, moved from Setup's top level.
  • Formats (new): how dates, times, numbers, money, units and paper sizes are written, without changing the interface language. The common case is English with European or ISO formats, which today means switching the whole session to another language. Picking a region sets LC_TIME, LC_NUMERIC, LC_MONETARY, LC_MEASUREMENT and LC_PAPER (never LANG or LC_MESSAGES) in ~/.config/uwsm/env.d/51-omarchy-region and in the running session, the same way a language switch hands over LANG. Same as language, the default, removes them. The list offers regional English (United States, United Kingdom, Denmark for ISO dates with a 24-hour clock, Ireland, Australia, Canada), then the region of every language Omarchy ships. Each row shows a sample such as 2026-11-18 14:30 · 1.234,5, so you pick by what you see.
  • Timezone: the existing timezone picker, moved here from Update.

From the command line it's omarchy region [<code>|list|default], shaped like omarchy language.

Generating a region's locale goes through the same root helper as a language (omarchy-locale-generate). That helper still takes nothing but a registry code: it now also reads the packaged default/i18n/regions.json, and the passwordless sudoers rule names the six new codes one by one, like the language codes. So picking a format from the menu doesn't ask for a password, and nothing the caller passes ever reaches locale.gen or localedef. Locale generation and the session hand-off move out of omarchy-language into omarchy-locale-session, which both commands source. The moved menu rows keep their translations, since their catalog keys and manifest hashes are renamed along with them.

This is the Omarchy side of omacom/folio#90, which makes Folio honor LC_TIME. Formats is how users set it.

One thing to know: Qt apps read the same variables but take their patterns from CLDR rather than glibc, so a few regions differ in the details. For example, Qt writes en_DK dates as 18.11.2026, while glibc (and the samples here) write 2026-11-18. The shell's own clock keeps following the language (I18n.formatLocale), as it does today.

Screenshots

Taken in a disposable Omarchy VM (base quattro on the left, this branch on the right).

Setup:
Setup menu before and after

Update (Timezone moves out):
Update menu before and after

Setup > Region:
Region submenu

Setup > Region > Formats:
Formats picker

🤖 Generated with Claude Code

dhh and others added 3 commits November 18, 2026 19:42
The root helper now also reads the packaged region registry, so Formats
can generate en_GB, en_DK and friends without a password, through the
same code-only sudoers grant.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Sets LC_TIME, LC_NUMERIC, LC_MONETARY, LC_MEASUREMENT and LC_PAPER in
uwsm's env and the running session, leaving LANG and LC_MESSAGES to the
language. omarchy-menu-region picks one by a sample of how it writes
dates and numbers. Locale generation and the session hand-off move to
omarchy-locale-session, shared with omarchy-language.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Timezone moves over from Update, and Language from Setup's top level,
keeping their translations.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@greptile-apps

greptile-apps Bot commented Nov 18, 2026 •

Copy link
Copy Markdown
Contributor

RetriggerView in GreptileConfidence Score: 5/5

[Medium impact] The PR appears safe to merge; no actionable issues remain from this review.

Summary

Adds Setup > Region, grouping language, regional formats, and timezone choices while keeping formats separate from the interface language.

  • People can choose regional formats without changing their interface language.
  • Setup now groups Language, Formats, and Timezone under Region.
  • Language and format choices share locale setup and session handoff.

The earlier notification issue is fixed: both format notifications now pass a calendar glyph after -g. No new actionable issues found.

Reviews (4) · Last reviewed commit: "Merge remote-tracking branch 'origin/qua..." · Reviewed by Greptile

Comment thread bin/omarchy-region Resolved
-g takes the next argument as the glyph, so without one the headline
was swallowed.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@dhh

dhh commented Nov 18, 2026

Copy link
Copy Markdown
Contributor Author

Screenshots, taken in a disposable Omarchy VM (base quattro on the left, this branch on the right).

Setup:
Setup menu before and after

Update (Timezone moves out):
Update menu before and after

Setup > Region:
Region submenu

Setup > Region > Formats:
Formats picker

dhh and others added 2 commits November 18, 2026 19:56
Like omarchy-shell-config, so reading the language works wherever
omarchy-language runs, including against a bare OMARCHY_PATH.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
# Conflicts:
#	default/i18n/translation-manifest.json
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants