Skip to content

v0.13.0: locales/ directory missing from pip package — slash commands show raw i18n keys #27632

Closed

Description

@fayenix

Bug Description

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:

gateway.status.header
gateway.status.session_id
gateway.status.title
...

Root Cause

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

  1. Fresh install of v0.13.0 via pip
  2. Start gateway with Discord adapter
  3. Run /status slash command
  4. 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

Activity

  1. added
    type/bugSomething isn't working
    P1High — major feature broken, no workaround
    comp/cliCLI entry point, hermes_cli/, setup wizard
    comp/gatewayGateway runner, session dispatch, delivery
    on May 17, 2026
  2. alt-glitch commented on May 17, 2026

    @alt-glitch

    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.

  3. added a commit that references this issue on May 21, 2026
    53c4d20
  4. yazan1991 commented on May 22, 2026

    @yazan1991

    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.

  5. added 3 commits that reference this issue on May 22, 2026
    12d4278
    ac256b7
    87c4d70
  6. alt-glitch commented on Jun 3, 2026

    @alt-glitch

    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.

  7. 3 remaining items

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    P1High — major feature broken, no workaroundcomp/cliCLI entry point, hermes_cli/, setup wizardcomp/gatewayGateway runner, session dispatch, deliverytype/bugSomething isn't working

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions