Repository navigation
feat(menu): write the multi-user entries in the Omarchy language - #11
Merged
Merged
Conversation
The menu translates only its own rows (default/i18n/<code>/menu.json), never an extension's, so Switch User and Setup › Users stayed in English whatever language Omarchy showed. omarchy-mu-menu-sync now writes their labels from share/menu-labels.json, which has every language Omarchy has, in the language ~/.config/omarchy/language names, and keeps the English label as a search term the way the menu does for its own rows. Anything it lacks is English. It runs at each login, as before, and when the language changes: omarchy-mu-menu-sync.path, enabled along with omarchy-mu-login.service (Also=), on upgrade where that one is, and disabled on removal. A test checks the catalog against the block's labelled entries and against Omarchy's locales.json. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This was referenced Nov 5, 2026
Merged
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.
Summary
The Omarchy menu translates only its own rows (
default/i18n/<code>/menu.json), never an extension's, so System › Switch User and Setup › Users stayed in English whatever language Omarchy showed.share/menu-labels.json: the six labels in every language Omarchy has (49 besides English), reusing Omarchy's own words for user, password and remove in each.omarchy-mu-menu-syncreads the language asomarchy-i18ndoes ($OMARCHY_LANGUAGE_FILEor~/.config/omarchy/language) and writes the labels in it, keeping the English label insearchTerms, as the menu does for its own rows. An unknown, invalid or missing language is English. Actions andwhengates are untouched.omarchy-mu-menu-sync.path(user) reruns it when the language changes. It comes withomarchy-mu-login.service(Also=); on upgrades from before 0.11.0 it is enabled where the login unit is, and it is disabled on removal.Notes
%h/.config/omarchy/language; with anotherXDG_CONFIG_HOME, a change shows at the next login.Test plan
tests/sh/menu-sync.test.sh: 9 passed, including English without a language file, pt-BR labels with search terms, following a change back to English, bad codes, and the catalog matching the block's entries and Omarchy'slocales.jsontests/sh/*.test.shandnode --test tests/js/(22 passed)omarchy-menu.jsoncin pt-BRjust lint(shellcheck 0.11.0 over bin/, lib/, scripts/ and tests/sh/, qmllint): cleanomarchy language <code>and see the entries follow without logging out (checked on a real machine: pt-BR → de → pt-BR)🤖 Generated with Claude Code