Skip to content

[codex] Fix locale picker metadata#83

Merged
hxy91819 merged 1 commit into
openclaw:mainfrom
hxy91819:feature/fix-locale-metadata-icons
Jul 1, 2026
Merged

[codex] Fix locale picker metadata#83
hxy91819 merged 1 commit into
openclaw:mainfrom
hxy91819:feature/fix-locale-metadata-icons

Conversation

@hxy91819

@hxy91819 hxy91819 commented Jul 1, 2026

Copy link
Copy Markdown
Member

Summary

  • Add Hindi and Russian locale labels and flags to the docs-site locale metadata.
  • Centralize locale flag metadata in config.mjs so the picker uses the same locale configuration source as labels.
  • Add smoke coverage that fails when an active locale is missing a label or flag, and asserts Hindi/Russian render in the picker.

Root cause

docs/docs.json includes hi and ru, but the docs-site build metadata did not include those locale labels or flags. The language picker therefore fell back to 🌐 for the icon and the raw locale code for the display label.

Validation

  • npm run docs:build:shell && npm run docs:smoke:shell
  • node --check scripts/docs-site/build.mjs && node --check scripts/docs-site/config.mjs && node --check scripts/docs-site/smoke.mjs
  • npm test
  • Confirmed generated dist/docs-site/index.html contains 🇮🇳 हिन्दी and 🇷🇺 Русский.

@hxy91819 hxy91819 marked this pull request as ready for review July 1, 2026 13:18
@hxy91819 hxy91819 requested a review from a team as a code owner July 1, 2026 13:18
@hxy91819 hxy91819 merged commit 895e674 into openclaw:main Jul 1, 2026
4 checks passed
@chatgpt-codex-connector

Copy link
Copy Markdown

You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard.

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant