You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
v0.13.0: locales/ directory missing from pip package — slash commands show raw i18n keys #27632
After upgrading to v0.13.0, all gateway slash commands that use the new i18n system show raw translation keys instead of rendered text. For example, /status outputs:
The locales/ directory (containing en.yaml and other language catalogs) exists in the source repository but is NOT included in the pip package. After pip install, site-packages/locales/ is absent. The agent/i18n.py module falls back to returning raw keys when no catalog is found.
Steps to Reproduce
Fresh install of v0.13.0 via pip
Start gateway with Discord adapter
Run /status slash command
Observe raw i18n keys instead of rendered text
Fix
The locales/ directory needs to be included in the pip package distribution (MANIFEST.in or pyproject.toml package data).
Workaround
Copy locales/en.yaml from the source repo into site-packages/locales/en.yaml.
Environment
Hermes Agent v0.13.0, pip install, Python 3.12, Linux
Related: #23943 is the same locales packaging bug for Nix (vs pip here). Fix PR #23966 uses HERMES_BUNDLED_LOCALES env var pattern that may be reusable for the pip/MANIFEST.in fix.
Still reproducible on Hermes Agent v0.14.0 (2026.5.16) on a uv/pip-style install.
Additional affected surface:
Telegram /model / model-switch replies
Observed raw keys before local hotfix:
gateway.model.switched
gateway.model.provider_label
gateway.model.context_label
gateway.model.max_output_label
gateway.model.cost_label
gateway.model.capabilities_label
gateway.model.session_only_hint
The code path in gateway/run.py now calls these gateway.model.* keys, so when the locale catalog is missing the user sees raw keys instead of the model-switch summary.
Local workaround that fixed it immediately:
create site-packages/locales/en.yaml
add the missing gateway.model.* entries
restart gateways so agent.i18n reloads catalogs
That restored human-readable output such as:
Model switched to: gpt-5.4
Provider: openrouter
Context window: 128,000 tokens
So this looks like the same packaging/distribution bug, not a gateway logic bug: the runtime expects locales/<lang>.yaml next to site-packages, and falls back to raw key names when the catalog is absent.
Fixed on main by #38383 (merged in c349eca). The pip wheel now ships the locales/*.yaml catalogs via setuptools data-files, and agent.i18n._locales_dir() resolves them through the interpreter's sysconfig data scheme — so slash commands render real strings instead of raw keys. Verified with a build-install e2e test (build wheel → install --no-deps in a clean venv outside the source tree → assert human strings). Closing as fixed.
Activity
alt-glitch commentedon May 17, 2026
Related: #23943 is the same locales packaging bug for Nix (vs pip here). Fix PR #23966 uses
HERMES_BUNDLED_LOCALESenv var pattern that may be reusable for the pip/MANIFEST.in fix.fix(pip): include locales in pip package via MANIFEST.in + HERMES_BUN…
yazan1991 commentedon May 22, 2026
Still reproducible on
Hermes Agent v0.14.0 (2026.5.16)on a uv/pip-style install.Additional affected surface:
/model/ model-switch repliesObserved raw keys before local hotfix:
gateway.model.switchedgateway.model.provider_labelgateway.model.context_labelgateway.model.max_output_labelgateway.model.cost_labelgateway.model.capabilities_labelgateway.model.session_only_hintThe code path in
gateway/run.pynow calls thesegateway.model.*keys, so when the locale catalog is missing the user sees raw keys instead of the model-switch summary.Local workaround that fixed it immediately:
site-packages/locales/en.yamlgateway.model.*entriesagent.i18nreloads catalogsThat restored human-readable output such as:
Model switched to: gpt-5.4Provider: openrouterContext window: 128,000 tokensSo this looks like the same packaging/distribution bug, not a gateway logic bug: the runtime expects
locales/<lang>.yamlnext to site-packages, and falls back to raw key names when the catalog is absent.fix: include locales/ in pip package distribution
fix: add locales to package-data in pyproject.toml
fix: restore pyproject.toml and add locales to package-data
fix(packaging): ship locales/ i18n catalogs in wheel, sdist, and Nix (#…
alt-glitch commentedon Jun 3, 2026
Fixed on
mainby #38383 (merged in c349eca). The pip wheel now ships thelocales/*.yamlcatalogs via setuptoolsdata-files, andagent.i18n._locales_dir()resolves them through the interpreter'ssysconfigdata scheme — so slash commands render real strings instead of raw keys. Verified with a build-install e2e test (build wheel → install--no-depsin a clean venv outside the source tree → assert human strings). Closing as fixed.3 remaining items
fix(packaging): ship locales/ i18n catalogs in wheel, sdist, and Nix (#…
fix(packaging): ship locales/ i18n catalogs in wheel, sdist, and Nix (N…
fix(packaging): ship locales/ i18n catalogs in wheel, sdist, and Nix (N…
fix(packaging): ship locales/ i18n catalogs in wheel, sdist, and Nix (N…
Fix regressions from the English-only i18n cleanup (Issue #5)
fix(packaging): ship locales/ i18n catalogs in wheel, sdist, and Nix (N…
fix(packaging): ship locales/ i18n catalogs in wheel, sdist, and Nix (N…
fix(packaging): ship locales/ i18n catalogs in wheel, sdist, and Nix (N…
fix(packaging): ship locales/ i18n catalogs in wheel, sdist, and Nix (N…
fix(packaging): ship locales/ i18n catalogs in wheel, sdist, and Nix (N…
fix(packaging): ship locales/ i18n catalogs in wheel, sdist, and Nix (N…