Skip to content

Changing language from Spanish to English doesn't work #14409

Closed

Description

@alexfertel

Description

I see the documentation is now showing in Spanish, I scrolled to the bottom and changed it to English, the page reloads and is still in Spanish.

Plugins

No response

OpenCode version

No response

Steps to reproduce

  1. Open the docs (I assume it's taking the language from the location collected by Chrome or smth like that)
  2. Use the dropdown at the bottom of the page to change the language.

Screenshot and/or share link

https://opencode.ai/docs/plugins/

Operating System

No response

Terminal

No response

Activity

  1. github-actions commented on Feb 20, 2026

    @github-actions
    Contributor

    This issue might be a duplicate of existing issues. Please check:

    If your issue is the same, please consider adding a "+1" reaction or additional context there instead of opening a new issue.

  2. Seungjun0906 commented on Feb 20, 2026

    @Seungjun0906
    Contributor

    @R44VC0RP
    Hi Ryan!
    could you check this PR!
    #13608

  3. R44VC0RP commented on Feb 20, 2026

    @R44VC0RP
    Contributor

    I'm not able to reproduce this when I go from English -> Spanish -> English. Can you provide more details?

  4. Seungjun0906 commented on Feb 20, 2026

    @Seungjun0906
    Contributor

    @R44VC0RP

    Thanks for quick response!

    I think it’s related to the oc_locale cookie.

    If you check Chrome DevTools → Application → Cookies:

    When oc_locale=en, the language selector works fine.

    When oc_locale is set to something else (e.g. ko), switching to other non-English languages works.

    However, switching to English does not work — it just redirects back to the ko docs.

    So basically, if oc_locale is not en, I’m unable to view the English docs. It seems like the cookie is forcing a redirect back to the current locale when trying to switch to English.

    Image
  5. chenmijiang commented on Feb 22, 2026

    @chenmijiang
    Contributor

    I'm not able to reproduce this when I go from English -> Spanish -> English. Can you provide more details?

    This issue may occur when the browser's "preferred language" is not English.

  6. Seungjun0906 commented on Feb 22, 2026

    @Seungjun0906
    Contributor

    I'm not able to reproduce this when I go from English -> Spanish -> English. Can you provide more details?

    This issue may occur when the browser's "preferred language" is not English.

    Exactly!

  7. trueberryless commented on Feb 23, 2026

    @trueberryless

    I don't wanna pollute the issue, but I can confirm, this also happens when the preferred language is German in the browser. That way, it is not possible to view the original English documentation, even when switching with the language dropdown or adapting the URL. I think it should be possible to view the docs in a language different from the browser preferred one as translations might be out of date.

  8. Seungjun0906 commented on Feb 23, 2026

    @Seungjun0906
    Contributor

    I'm not able to reproduce this when I go from English -> Spanish -> English. Can you provide more details?

    @R44VC0RP
    I provided more details! :)

    Thanks!

  9. gs-jdudulski commented on Feb 23, 2026

    @gs-jdudulski

    Same happens to me. I don't have oc_locale cookie, and my firefox has english set as preferred language. I guess it takes a preference from geolocation.

  10. olastor commented on Feb 23, 2026

    @olastor

    If anyone needs a quick fix to force the docs to be english, entering document.cookie = 'oc_locale=en; Path=/; Max-Age=31536000; SameSite=Lax' in the console seems to work around the issue.

  11. Seungjun0906 commented on Feb 23, 2026

    @Seungjun0906
    Contributor

    Same happens to me. I don't have oc_locale cookie, and my firefox has english set as preferred language. I guess it takes a preference from geolocation.

    It used to set oc_locale depending on preferred language.

  12. R44VC0RP commented on Feb 23, 2026

    @R44VC0RP
    Contributor

    If anyone needs a quick fix to force the docs to be english, entering document.cookie = 'oc_locale=en; Path=/; Max-Age=31536000; SameSite=Lax' in the console seems to work around the issue.

    Good catch, going to look into this.

  13. gs-jdudulski commented on Feb 24, 2026

    @gs-jdudulski

    BTW, the polish translation is total slop and I would recommend to remove it, unless you want to keep it as a joke.

  14. mpm commented on Feb 26, 2026

    @mpm

    I want to chime in and express my disappointment about proliferating automatic translations! Don't do that. YouTube and Reddit has pionieered this confusing behavior, it just makes it difficult to use the docs, especially technical documentation.

    If anything, consider showing the user an option to switch to their native language (but show the original content as default). Selecting a machine translation right away and making the user search for the language switcher button is just rude.

    The translation for technical stuff is very brittle anyway- code and configuration options remain English, so you see a weird mix of languages.

  15. mdread commented on Feb 27, 2026

    @mdread

    Same issue here, trying to switch from Italian to English.

    It looks to me that the https://opencode.ai/docs/ endpoint auto-detects the user's language, but specific language endpoints like https://opencode.ai/docs/it/ or https://opencode.ai/docs/es/ force the specified language.

    I think an easy fix that wouldn't require changing much about how the website works would be to add a /docs/en/ endpoint that (like any other language) forces English, then update the language switcher URL to point to that endpoint instead of the root /docs/ which would keep acting as it does now with language auto-detection.

  16. vimkim commented on Mar 4, 2026

    @vimkim

    I want to read documentation in English, not in Korean (since the current translation quality is not too satisfying).

  17. koutiany commented on Apr 10, 2026

    @koutiany

    document.cookie = 'oc_locale=en; Path=/; Max-Age=31536000; SameSite=Lax

    This fixed it, thank you so much! Would really appreciate a fix from opencode if possible.

  18. removed
    bugSomething isn't working
    on May 3, 2026
  19. hongpan-z commented on May 12, 2026

    @hongpan-z

    Besides the console method, another quick fix is to simply replace the language code in the URL to "en". For example, https://opencode.ai/docs/en/skills/.

  20. assigned and unassigned on May 19, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions