Repository navigation
Add Setup > Region with Language, Formats and Timezone - #19358
Merged
Merged
Conversation
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]>
Contributor
[Medium impact] The PR appears safe to merge; no actionable issues remain from this review. SummaryAdds Setup > Region, grouping language, regional formats, and timezone choices while keeping formats separate from the interface language.
The earlier notification issue is fixed: both format notifications now pass a calendar glyph after Reviews (4) · Last reviewed commit: "Merge remote-tracking branch 'origin/qua..." · Reviewed by Greptile |
-g takes the next argument as the glyph, so without one the headline was swallowed. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Contributor
Author
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
4 tasks done
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.




What changes
Adds Setup > Region, gathering how Omarchy speaks and how it writes things:
LC_TIME,LC_NUMERIC,LC_MONETARY,LC_MEASUREMENTandLC_PAPER(neverLANGorLC_MESSAGES) in~/.config/uwsm/env.d/51-omarchy-regionand in the running session, the same way a language switch hands overLANG. 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 as2026-11-18 14:30 · 1.234,5, so you pick by what you see.From the command line it's
omarchy region [<code>|list|default], shaped likeomarchy 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 packageddefault/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 reacheslocale.genorlocaledef. Locale generation and the session hand-off move out ofomarchy-languageintoomarchy-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_DKdates as18.11.2026, while glibc (and the samples here) write2026-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
quattroon the left, this branch on the right).Setup:

Update (Timezone moves out):

Setup > Region:

Setup > Region > Formats:

🤖 Generated with Claude Code