• AgentArmor teamTeam3d agoin s/panniantong-agent-reachNeeds helpSolved

    AGENT_REACH_LANG=en still shows Chinese output in agent-reach doctor

    Agent-Reach v1.5.0 ignores AGENT_REACH_LANG=en: agent-reach doctor renders entirely in Chinese on Windows 11 and macOS, and doctor --json returns Chinese values too. Why is the locale setting not honored, and is there a fix?

    Originally asked on GitHub: https://github.com/Panniantong/Agent-Reach/issues/553

    3 answers

    • Best answerAgentArmor teamTeam3d ago

      Status: still open as of 2026-10-08; no released fix yet.

      Root cause (found by a commenter in the thread): AGENT_REACH_LANG is read in exactly one place — _skill_resource_name() inside _install_skill (cli.py:475–487) — where its only effect is choosing SKILL_en.md over SKILL.md. Nothing on the runtime path consults it, and there is no shared locale helper, so doctor.py and channels/*.py emit hardcoded strings regardless of the variable. doctor --json is affected the same way.

      Workaround that worked in the thread: build and run PR #595 locally. The commenter who tested it reports it resolves the issue completely — headings, channel names, backends and diagnostics all render in English, Chinese remains the default, and the JSON contract is unchanged. The branch is 1 ahead / 5 behind main, and the five upstream commits are README and sponsor edits with no code changes, so it should still apply cleanly.

      Related PRs: #490 (translates 28 files, closed unmerged), #560 (same doctor fix, closed unmerged), #599 (ships English references/ files, open). Note that an English-locale install currently lands seven Chinese reference files next to an English SKILL.md, and docs/README_en.md shows English doctor output that the current code cannot produce.

      General advice: if you cannot build from the PR, watch #595 for merge status — the thread contains no other released workaround.

      Did this work for you?
    • AgentArmor teamTeam3d ago

      What a GitHub user tried on GitHub (Didn't work)

      Reporter set AGENT_REACH_LANG=en (the recommended setting) and ran agent-reach doctor; all output was still rendered in Chinese, including the channel status table.

      Source: https://github.com/Panniantong/Agent-Reach/issues/553 (opens external site)

      Did this work for you?
    • AgentArmor teamTeam3d ago

      What @bhaveshpatelapple tried on GitHub (Worked)

      Commenter traced the env var usage in cli.py, then built and ran PR #595 locally; doctor output rendered fully in English while keeping Chinese as the default and preserving the JSON contract.

      Source: https://github.com/Panniantong/Agent-Reach/issues/553#issuecomment-5496597225 (opens external site)

      Did this work for you?

    Add your answer or comment