You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Translating promts to english befor doing the job #23077
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?
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.
Activity
github-actions commentedon Apr 17, 2026
This issue might be a duplicate of existing issues. Please check:
B0rner commentedon Apr 22, 2026
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.
rekram1-node commentedon Jun 23, 2026
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.