Omarchy menu never follows the system language, and the `languages` provider is missing (Language submenu shows "No results")
I maintainer di solito rispondono entro 11 giorni
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 3/5
- Tempo stimato
- 1-2 giorni
- Idoneità per principianti
- 62/100
- Tipo di issue
- Bug
- Chiarezza
- Specificata chiaramente
- Stato di attività
- Attiva
- Stack tecnologico
- javascript
- Ambito
- desktop, internationalization, localization
Direzione di ricerca
Start with the PROVIDERS map and providerMenus() in plugin/core/OmarchyMenu.js, which currently skip the languages provider, then look at how plugin/services/OmarchyMenuSource.qml loads the menu file. Add a languages provider that parses the three-column output of omarchy-language list, and add a translation step that reads the i18n catalog for the active language. Done when the Language submenu lists the available languages with the current one marked, English fallback works, and node --test tests/*.test.js passes with new cases in tests/omarchy-menu.test.js.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
Environment
- Omarchy
4.5.0rc1-1 - Quickshell
0.3.2 - oma-cast
main@90efedd - System language set to
pt-BRviaomarchy-language pt-BR(~/.config/omarchy/language)
Summary
Two related gaps around Omarchy's localization support:
- The Omarchy menu section of oma-cast is never translated — it always shows English labels, even when the system display language is set to something else.
- The
setup.languageentry declaresprovider: "languages", but that provider is not implemented, so entering the Language submenu yields "No results".
Problem 1 — Omarchy menu ignores the system display language
Omarchy ships per-locale catalogs at $OMARCHY_PATH/default/i18n/<code>/menu.json (e.g. pt-BR/menu.json maps root → { label: "Ir" }, apps → { label: "Aplicativos" }, ...). Other Omarchy surfaces (the native menu, the shell) apply that catalog.
plugin/services/OmarchyMenuSource.qml only loads the raw menu definition:
readonly property string defaultPath: source.omarchyPath + "/default/omarchy/omarchy-menu.jsonc"
readonly property string userPath: Quickshell.env("HOME") + "/.config/omarchy/extensions/omarchy-menu.jsonc"
Nothing ever reads ~/.config/omarchy/language or the matching i18n/<code>/menu.json, and OmarchyMenu.buildTree() has no translation step. Result: with the system in Portuguese, the Omarchy menu inside oma-cast stays fully in English.
Problem 2 — languages provider missing → empty Language submenu
omarchy-menu.jsonc declares:
"setup.language": { "label": "Language", "provider": "languages", ... }
But PROVIDERS in plugin/core/OmarchyMenu.js only defines fonts and power-profiles, and providerMenus() filters on that map:
if (item.provider && OmarchyMenu.PROVIDERS[item.provider]) out.push(item.id)
So the languages menu is silently skipped, never gets populated, and opens with "No results".
Proposed fix
Small, self-contained change in 3 files (~127 insertions, 10 deletions):
plugin/services/OmarchyMenuSource.qml
- Watch the language file (
$OMARCHY_LANGUAGE_FILE, falling back to~/.config/omarchy/language) with aFileView. - Load
$OMARCHY_PATH/default/i18n/<code>/menu.jsonwhen it exists, and rebuild the tree when either the language or the catalog changes. - Fall back cleanly to English when the file is missing, empty or invalid JSON.
plugin/core/OmarchyMenu.js
applyTranslations(items, catalog): replaceslabel,titleanddescriptionfrom the catalog, and keeps the original English label inaliasesso English search terms still match after switching language.PROVIDERS["languages"]: built fromomarchy-language list. Note that the command emits 3 tab-separated columns (label,code,english), while the provider pipeline expects 4 (label,code,current,english) — the active code comes fromomarchy-language(no args). Marking the current entry viaisCurrentmakes the menu show where you already are.
Example of the actual command output on this machine:
English<TAB>en<TAB>English
Português (Brasil)<TAB>pt-BR<TAB>Portuguese (Brazil)
tests/omarchy-menu.test.js
- Unit tests for
applyTranslations, for English alias retention, and forlanguagesprovider enumeration + active-item marking.
Verification
node --test tests/*.test.js→ 90 pass / 0 failomarchy plugin validate plugin→ exit 0bash -n bin/oma-cast tests/smoke.sh→ OK- Manually checked with
omarchy-shellrunning, both with an English and a non-English system language.
Happy to paste the diff here as a patch, or open a PR if you prefer — just say which.
- Lingua principale
- JavaScript
- Stelle
- 560
- Fork
- 93
- Merge medio
- 7g 19h
- PR unite (30g)
- 19
Preparare l'ambiente
Questo progetto non fornisce container di sviluppo, Dockerfile né guida per i contributori, quindi l'ambiente è a tuo carico: parti dal suo README e consulta la nostra guida al primo contributo per i passaggi generali.
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di typecraft-dev/oma-cast
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
typecraft-dev/oma-cast#120 ·
I maintainer di solito rispondono entro 11 giorni
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
typecraft-dev/oma-cast#119 ·
I maintainer di solito rispondono entro 11 giorni
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 62/100
typecraft-dev/oma-cast#110 ·
I maintainer di solito rispondono entro 11 giorni
-
Difficoltà 4/5 3-5 giorni Idoneità per principianti 54/100
typecraft-dev/oma-cast#116 ·
I maintainer di solito rispondono entro 11 giorni
-
Launcher stays invisible after a monitor change until the shell restartsForse già presa @warfl0p l’ha presa 9 giorni fa. Aperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 25/100
typecraft-dev/oma-cast#112 ·
I maintainer di solito rispondono entro 11 giorni
Tutte le issue di typecraft-dev/oma-cast
Issue simili
-
清理 #260:沒有魚時不放空的照片列Apertasize:S spec:drafting
Difficoltà 1/5 1-3 ore Idoneità per principianti 78/100
blackie0424/tao_among#262 ·
I maintainer di solito rispondono entro 1 giorno
-
backlog
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
sagemathinc/sagebrush#2768 ·
I maintainer di solito rispondono entro 1 giorno
-
bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 68/100
Fei2411/DeepSeek-Bot#2653 ·
-
documentation good first issue
Difficoltà 1/5 1-3 ore Idoneità per principianti 90/100
seuthootDev/github-readme-insight-terminal-ascii#26 ·
I maintainer di solito rispondono entro 1 giorno
-
Add: SkillHeyAperta
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 67/100
I maintainer di solito rispondono entro 1 giorno