Skip to content

Translating promts to english befor doing the job #23077

Closed as not planned
Closed as not planned

Description

@B0rner

Question

Most models work best when you provide prompts in English. However, in my experience, I’ve noticed that many non-English speakers use their native language for prompts, which -depending on the model- can result in requests being handled less accurately, or the model entering an “I speak language XY” mode and often attempting to translate tokens that are more common in the target language. details.js then becomes details.ja, at which point OpenCode wonders why there isn’t a file named details.ja at all.

This problem is particularly noticeable with locally hosted models when quantization is used, even on mdium models with 100 - 200 GB size. However, you can also feel the improved understanding with English prompts when using Claude Opus, and the like.

My question is: is there a way to configure opencode in that way, that non-english-prompts will be translated (by a model) in the first step before sending the "real job" to a model?

Activity

  1. added
    core
    on Apr 17, 2026
  2. github-actions commented on Apr 17, 2026

    @github-actions
    Contributor

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

  3. B0rner commented on Apr 22, 2026

    @B0rner
    Author

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

    * [[FEATURE]: Support automatic translation between the UI and API for prompts and responses #16761](https://github.com/anomalyco/opencode/issues/16761): Feature request for automatic translation between UI and API for prompts/responses — describes essentially the same concept of translating non-English prompts to English before sending to the model
    
    * [How to globally set the language for model thinking and answering #9610](https://github.com/anomalyco/opencode/issues/9610): Question about globally setting the language for model thinking and answering — related discussion
    

    My question is not duplicate to #16761, because #16761 is a request to use "google translate" for translating all prompts. Using a external Service is not a good idea, because this will not work, if you work offline and/or google is not available on the system. AND translating the prompt into the models language (mostly English) will work with the most models. So you don't need to build a dependency to an other/external system/service.

    Also, #9610 will do something different: the issue is about changing the models language, meaning how the model will "think" and answer. But, this is the point: the result of the model is much better, if you not force the model to think and work in an other language than the language where the Model was build on.

    The results are much better, if the model works in "his own language" and only output/input are translated by an additional call to the model.

  4. removed
    core
    on May 3, 2026
  5. rekram1-node commented on Jun 23, 2026

    @rekram1-node
    Member

    Automated: closing question issues.

    GitHub Issues are for bug reports and feature requests only — questions / support are no longer tracked here.

    If this is a bug or feature request, please open a new issue with the appropriate template.

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