Skip to content

Add Esperanto (eo) - #16320

Open
xemuj wants to merge 8 commits into
omacom:quattrofrom
xemuj:add-esperanto
Open

xemuj wants to merge 8 commits into
omacom:quattrofrom
xemuj:add-esperanto

Conversation

@xemuj

@xemuj xemuj commented Oct 22, 2026

Copy link
Copy Markdown

Add Esperanto (eo)

Omarchy now ships in 51 languages.

Esperanto is the one language in the roster with no country, which makes it the first to need a code change rather than just catalogs. glibc ships it as plain eo.UTF-8, not eo_XX.UTF-8, and /usr/share/i18n/SUPPORTED has it as eo UTF-8:

$ grep -cE "^eo_" /usr/share/i18n/SUPPORTED
0
$ grep -E "^eo" /usr/share/i18n/SUPPORTED
eo UTF-8

bin/omarchy-locale-generate rejected that with ^[a-z]{2,3}_[A-Z]{2}\.UTF-8$, so selecting Esperanto could never have generated its system locale. The country part is now optional:

-if [[ ! $locale =~ ^[a-z]{2,3}_[A-Z]{2}\.UTF-8$ ]]; then
+if [[ ! $locale =~ ^[a-z]{2,3}(_[A-Z]{2})?\.UTF-8$ ]]; then

The registry entry takes formatLocale: "eo" and locale: "eo.UTF-8", with a comma decimal separator and Western digits, per CLDR. No direction key: Esperanto is left-to-right.

What is translated

All four catalogs under default/i18n/eo/, with keys identical to the English source:

File Keys
menu.json 413
shell.json 558
cli.json 306
keybindings.json 189

Three manual chapters (01, 02, 03) are translated too; the rest are left to the sync workflow.

What needed no change

Plurals. CLDR gives Esperanto only one (n = 1) and other, which is the existing else branch in plural.jq, so that file is untouched. plural_pick returns 1 memorigo / 5 memorigoj.

Numbers. The registry's decimal and zeroDigit are set from CLDR, so omarchy-i18n --number 13.1 writes 13,1.

Conventions

Left in English on purpose: brand and product names (Omarchy, Hyprland, Neovim, Firefox, Steam, Rust…), technical tokens (DNS, DHCP, SSH, AUR, TUI, GPU), commands, paths, URLs, key names. Every %1/%2 placeholder is preserved, order sometimes changed for Esperanto word order.

Menu labels read as infinitives (Ŝalti, Forigi, Instali), which is the usual Esperanto convention for menu items.

Verification

$ ./test/shell.d/i18n-test.sh
406 passed, 0 failures

This includes every registry locale exists in glibc SUPPORTED, which is the assertion that catches a bad locale value.

manual/eo/check.py applies the same integrity rules as the test suite to the manual (heading count, URLs, fenced code, relative links, protected inline spans) and confirms the prose is translated rather than copied.

I18N_STRICT=1 still fails on da/menu.json; that failure is present on a clean tree and unrelated to this change.

For reviewers

default/i18n/eo/REVIEW.md lists all 1,213 translated strings beside their English source, the conventions applied, and the six things a native speaker should check hardest. default/i18n/eo/build-review.py regenerates it.

Three open questions are flagged there, the main one being that Esperanto has no settled UI convention for a Setup menu — setup is translated as Agordo (singular), where some Esperanto localisation guides prefer Agordoj or Konfigurado.

Also worth confirming on a real install: the clock.* Qt date patterns were left in English because the shell hands them straight to Qt.locale(formatLocale). Esperanto month names should localise through Qt.locale("eo"), but that has not been checked on-device yet.

xemuj added 2 commits October 22, 2026 10:52
Esperanto is the only locale in the roster with no country: glibc ships
it as plain eo.UTF-8 rather than eo_XX.UTF-8. Widen the locale gate in
omarchy-locale-generate to accept a country-less locale so selecting it
can generate the system locale.

Add the four catalogs under default/i18n/eo/ with the same keys as the
English source: menu, shell, cli and keybindings. Esperanto needs only
the default one/other plural rule, so plural.jq is unchanged; CLDR gives
it a comma decimal separator and Western digits, both recorded in the
registry.

Bump the language count the test asserts.
Three of the 51 manual chapters in Esperanto, and a checker that applies
the same integrity rules as test/shell.d/i18n-test.sh: heading count,
URLs, fenced code, relative link destinations, and protected inline
spans, plus a check that the prose is actually translated rather than
copied from English.

REVIEW.md lists every translated catalog string next to its English
source, grouped by file, with the conventions already applied and the
places a native speaker should look hardest. The remaining manual
chapters are left to the translation sync workflow.
@greptile-apps

greptile-apps Bot commented Oct 22, 2026 •

Copy link
Copy Markdown
Contributor

Confidence Score: 5/5 · The PR appears safe to merge, with the previously reported English-manual fallback remaining a non-blocking issue.RetriggerView in GreptileConfidence Score: 5/5

[Medium impact] The PR appears safe to merge, with the previously reported English-manual fallback remaining a non-blocking issue.

Findings

  1. P2 Esperanto help opens English ▶

Summary

Adds Esperanto as Omarchy’s 51st language, with four catalogs, three manual chapters, and support for generating a locale without a country code.

  • Esperanto can generate its country-free system locale.
  • Esperanto speakers can use translated desktop and command text.
  • Three opening manual chapters are available in Esperanto.

Reviews (6) · Last reviewed commit: "Address review: Esperanto wording fixes,..." · Reviewed by Greptile

Comment thread default/i18n/locales.json Resolved
Comment thread default/i18n/locales.json Resolved
Comment thread default/i18n/eo/menu.json Resolved
Comment thread default/i18n/eo/menu.json Resolved
Comment thread default/i18n/eo/menu.json Resolved
Comment thread manual/eo/check.py Resolved
@omarchybot omarchybot added the enhancement New feature or request label Oct 22, 2026
Greptile review on omacom#16320.

The sudo grant named every registry code as a whole argument, so eo was
missing from etc/sudoers.d/omarchy-locale-generate and picking Esperanto
would have prompted for a password. locale-sudoers-test.sh keeps that
list equal to locales.json, and now covers eo.

Record the eo section of translation-manifest.json so the sync workflow
does not treat the contributed catalogs as pending and overwrite them:
`i18n-sync.py manifest --locales eo` records a hash per translated unit,
leaving only the 48 unwritten manual chapters in the queue.

Four translation corrections:

- Shutdown is power-off, not turn-on. `Ŝalti` ("turn on") becomes
  `Malŝalti` in system.shutdown, and the three CLI strings that describe
  shutting down follow.
- setup.reset opens the factory-reset command rather than restarting, so
  it now says so.
- install.windows and remove.windows manage the Windows VM, a Microsoft
  product name the brief requires leaving unchanged, not desktop windows.

Also make --quiet in manual/eo/check.py silence its diagnostics without
skipping the prose check, so a copied English chapter still fails the
quiet run.

@chessing234 chessing234 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

all good

# Conflicts:
#	bin/omarchy-locale-generate
#	default/agents/skills/omarchy-app/SKILL.md
#	etc/sudoers.d/omarchy-locale-generate
#	test/shell.d/i18n-test.sh
Comment thread manual/eo/02-getting-started.md Resolved
Comment thread default/i18n/eo/build-review.py Resolved
Comment thread default/i18n/locales.json
Comment on lines +443 to +445
"decimal": ",",
"zeroDigit": "0"
},

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Esperanto help opens English

The new eo entry has no site, so omarchy-launch-manual opens the English manual after the user selects Esperanto. The language guide requires every added language to have its site. Add the Esperanto site before merging to satisfy that requirement.

File Used: docs/i18n.md (source)

Note: If this suggestion doesn't match your team's coding style, reply to this and let me know. I'll remember it for next time!

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Added "site": "https://omarchy.org/" in e4514db. eo.omarchy.org does not exist in DNS yet (NXDOMAIN), so pointing to https://omarchy.org/ keeps locales.json complete without breaking Learn > Omarchy; once omarchy-site provisions eo.omarchy.org, it can be swapped there.

Comment thread default/i18n/eo/shell.json Resolved
Comment thread default/i18n/eo/menu.json Resolved
Comment thread default/i18n/eo/shell.json Resolved
Comment thread default/i18n/eo/keybindings.json Resolved
Comment thread default/i18n/eo/build-review.py Resolved
@xemuj

xemuj commented Nov 25, 2026

Copy link
Copy Markdown
Author

Updated with quattro, resolved the merge conflicts (including Setup > Region > Formats sample + country-less locale test in locale-sudoers-test.sh), and addressed all review findings. Focused i18n, sudoers, setup-form, and install-language tests pass and Greptile is at 5/5.

A quick question for maintainers regarding the 50-language cut-off mentioned in omacom/omarchy-site#592:

  • Are you open to accepting Esperanto if it's community-maintained (e.g. excluded from Muse's automated sync so it doesn't add token/maintenance cost, similar to the approach proposed in Add Kyrgyz interface translations #19749)?
  • If so, I'm happy to open the companion eo.omarchy.org PR in omacom/omarchy-site and switch locales.json's site field over from https://omarchy.org/ once that's live (and drop REVIEW.md / build-review.py / manual/eo/check.py before merge if you prefer keeping the tree minimal).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants