Skip to content

feat(menu): add Afrikaans menu and localized menu support - #11116

Open
dvcorreia1984 wants to merge 1 commit into
omacom:quattrofrom
dvcorreia1984:add-afrikaans-menu
Open

feat(menu): add Afrikaans menu and localized menu support#11116
dvcorreia1984 wants to merge 1 commit into
omacom:quattrofrom
dvcorreia1984:add-afrikaans-menu

Conversation

@dvcorreia1984

Copy link
Copy Markdown

Summary

Adds Afrikaans (af) localization for the Omarchy main menu and introduces lightweight support for localized default menu definitions:

  1. Afrikaans Menu Definition (default/omarchy/omarchy-menu.af.jsonc):

    • Full translation of root, system, style, install, update, and setup menu labels and titles into Afrikaans (af).
    • Preserves all IDs, icons, actions, conditions (when), checked guards, and providers intact.
  2. Localized Menu Loading in shell/plugins/menu/Menu.qml:

    • Detects language from OMARCHY_LANGUAGE or LANG (localeCode).
    • Automatically loads matching default/omarchy/omarchy-menu.<lang>.jsonc when available.
    • Seamless fallback to the English default (default/omarchy/omarchy-menu.jsonc) if a language file does not exist or fails to load.
    • Preserves user extension overrides at ~/.config/omarchy/extensions/omarchy-menu.jsonc layered on top.

This allows Afrikaans users (and future language packs) to enjoy an official localized menu out of the box.

- Add `default/omarchy/omarchy-menu.af.jsonc` containing full Afrikaans menu definitions
- Update `shell/plugins/menu/Menu.qml` to auto-detect system language (`LANG` / `OMARCHY_LANGUAGE`) and load matching `default/omarchy/omarchy-menu.<lang>.jsonc` with seamless fallback to English defaults
- Retain existing user override behavior at `~/.config/omarchy/extensions/omarchy-menu.jsonc`
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.

1 participant