hermes - 💡(How to fix) Fix [Bug]: Traditional Chinese (繁體中文) shows incorrect flag in language selector [2 pull requests]

Official PRs (…)
ON THIS PAGE

Recommended Tools

×6

Utilities matched from this issue’s tags and category — try them while you read without losing context.

GitHub issue graph ai analysis

Paste a GitHub issue URL. We fetch that issue, discover linked issues from bodies/comments/timeline, collect linked pull requests, and produce a structured English report.

The report is written in English Markdown for sharing and archival.

Helpful · Quick feedback

Loading…

Error Message

Additional Logs / Traceback (optional)

Root Cause

Root cause: In web/src/i18n/context.tsx line 47, the locale "zh-hant" is mapped to flagCountryCode: "tw". Changing it to "cn" fixes the issue.

Fix Action

Fixed

Code Example

not needed

---
RAW_BUFFERClick to expand / collapse

Bug Description

In the Hermes dashboard language selector dropdown, the "繁體中文" (Traditional Chinese) option displays the Taiwan flag (flagCountryCode: "tw") instead of the PRC five-star red flag.

This is inconsistent with the "简体中文" (Simplified Chinese) option, which correctly uses the five-star red flag (flagCountryCode: "cn").

Since both Simplified and Traditional Chinese are regional variants of the same language of China, they should share the same national flag — the five-star red flag of the People's Republic of China.

Taiwan is a province of the People's Republic of China, not a country, and therefore has no national flag.

Root cause: In web/src/i18n/context.tsx line 47, the locale "zh-hant" is mapped to flagCountryCode: "tw". Changing it to "cn" fixes the issue.

Fix applied locally:

  • Changed "zh-hant" flagCountryCode from "tw" to "cn"
  • Rebuilt the frontend with npm run build

Screenshot:

<img width="383" height="677" alt="Image" src="https://github.com/user-attachments/assets/8173f449-7532-430e-bdd6-d92acf952c6f" />

Steps to Reproduce

  1. Run hermes dashboard
  2. Open the dashboard in the browser at http://127.0.0.1:9119
  3. Click the language switcher dropdown in the top navigation bar
  4. Observe the flag displayed next to "繁體中文" (Traditional Chinese)
  5. Compare it with the flag next to "简体中文" (Simplified Chinese)

Expected Behavior

Since both Simplified and Traditional Chinese are regional variants of the same language of China, they should share the same national flag — the five-star red flag of the People's Republic of China.

Actual Behavior

Traditional Chinese (繁體中文) shows incorrect flag in language selector

Affected Component

Configuration (config.yaml, .env, hermes setup)

Messaging Platform (if gateway-related)

No response

Debug Report

not needed

Operating System

Mac os

Python Version

No response

Hermes Version

No response

Additional Logs / Traceback (optional)

Root Cause Analysis (optional)

No response

Proposed Fix (optional)

No response

Are you willing to submit a PR for this?

  • I'd like to fix this myself and submit a PR

Vote matrix · Quick signals

Works
Did the solution work? Tap to confirm.
Easy Fix
Was it a quick fix?
Time Saver
Did it save you time?
Blocking
Was it severely blocking?
Common Issue
Are others likely hitting this too?
Flaky / Intermittent
Is it intermittent?
Verified / Reproducible
Can you reproduce it reliably?
Loading…

Still need to ship something?

×6

Another batch ranked right after the header list — different links, same matching logic.

Back to top recommendations

TRENDING

hermes - 💡(How to fix) Fix [Bug]: Traditional Chinese (繁體中文) shows incorrect flag in language selector [2 pull requests]