[Website] Docs language switcher fails to update content to English #9041

Closed
opened 2026-02-16 18:11:29 -05:00 by yindo · 2 comments
Owner

Originally created by @G36maid on GitHub (Feb 11, 2026).

Originally assigned to: @jayair on GitHub.

Description

Describe the bug
I encountered an issue with the language switcher on the documentation website (opencode.ai/docs).
When I switch the language from Traditional Chinese (繁體中文) back to English using the footer, the URL correctly updates to the default path (https://opencode.ai/docs), but the page content remains in Traditional Chinese.

It seems that the language selection does not correctly override the cached locale or browser preference when navigating to the root /docs path.

To Reproduce
Steps to reproduce the behavior:

  1. Go to https://opencode.ai/docs/zh-tw.
  2. Scroll down to the footer.
  3. Click on the language dropdown and select English.
  4. Observe the URL changes to https://opencode.ai/docs (Correct).
  5. Observe the content is still displayed in Traditional Chinese (Incorrect).

Expected behavior
When English is selected, the page should reload and display the content in English, matching the URL.

Environment

  • OS: [e.g. macOS / Windows]
  • Browser: [e.g. Chrome / Edge / Firefox]
  • Current Location/Locale: Taiwan (zh-TW)

Additional context
Refreshing the page or opening it in Incognito mode sometimes resolves it, implying a persistence/cookie issue or middleware routing priority issue.

Plugins

No response

OpenCode version

No response

Steps to reproduce

No response

Screenshot and/or share link

No response

Operating System

No response

Terminal

No response

Originally created by @G36maid on GitHub (Feb 11, 2026). Originally assigned to: @jayair on GitHub. ### Description **Describe the bug** I encountered an issue with the language switcher on the documentation website (`opencode.ai/docs`). When I switch the language from **Traditional Chinese (繁體中文)** back to **English** using the footer, the URL correctly updates to the default path (`https://opencode.ai/docs`), but the page content **remains in Traditional Chinese**. It seems that the language selection does not correctly override the cached locale or browser preference when navigating to the root `/docs` path. **To Reproduce** Steps to reproduce the behavior: 1. Go to [https://opencode.ai/docs/zh-tw](https://opencode.ai/docs/zh-tw). 2. Scroll down to the footer. 3. Click on the language dropdown and select **English**. 4. Observe the URL changes to `https://opencode.ai/docs` (Correct). 5. Observe the content is still displayed in **Traditional Chinese** (Incorrect). **Expected behavior** When English is selected, the page should reload and display the content in English, matching the URL. **Environment** - OS: [e.g. macOS / Windows] - Browser: [e.g. Chrome / Edge / Firefox] - Current Location/Locale: Taiwan (zh-TW) **Additional context** Refreshing the page or opening it in Incognito mode sometimes resolves it, implying a persistence/cookie issue or middleware routing priority issue. ### Plugins _No response_ ### OpenCode version _No response_ ### Steps to reproduce _No response_ ### Screenshot and/or share link _No response_ ### Operating System _No response_ ### Terminal _No response_
yindo added the bugdocs labels 2026-02-16 18:11:29 -05:00
yindo closed this issue 2026-02-16 18:11:29 -05:00
Author
Owner

@github-actions[bot] commented on GitHub (Feb 11, 2026):

This issue appears to be a duplicate of #13057, which reports the same language switcher problem on the opencode documentation website. Both issues describe the URL changing correctly but the page content remaining in the original language instead of switching to English.

Please check #13057 to see if it already addresses your concern, or if you have additional details to add that might help resolve the issue.

@github-actions[bot] commented on GitHub (Feb 11, 2026): This issue appears to be a duplicate of #13057, which reports the same language switcher problem on the opencode documentation website. Both issues describe the URL changing correctly but the page content remaining in the original language instead of switching to English. Please check #13057 to see if it already addresses your concern, or if you have additional details to add that might help resolve the issue.
Author
Owner

@Seungjun0906 commented on GitHub (Feb 13, 2026):

@jayair
I have PR for this issue https://github.com/anomalyco/opencode/pull/13109

@Seungjun0906 commented on GitHub (Feb 13, 2026): @jayair I have PR for this issue https://github.com/anomalyco/opencode/pull/13109
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#9041