How to make opencode always reply in another language (for example: Chinese), including the /init command. #1715

Closed
opened 2026-02-16 17:32:19 -05:00 by yindo · 4 comments
Owner

Originally created by @canomh on GitHub (Sep 14, 2025).

Originally assigned to: @rekram1-node on GitHub.

Originally created by @canomh on GitHub (Sep 14, 2025). Originally assigned to: @rekram1-node on GitHub.
yindo closed this issue 2026-02-16 17:32:19 -05:00
Author
Owner

@github-actions[bot] commented on GitHub (Sep 14, 2025):

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

  • #2357: Proposal for Chinese translation support - addresses Chinese language accessibility
  • #198: Support for Chinese input methods and layout in macOS terminal
  • #2593: Bug with garbled text when using non-ASCII characters (including Chinese)
  • #1857: Issues with syntax highlighting and text selection for non-English text

Feel free to ignore if none of these address your specific case of configuring opencode to always respond in Chinese.

@github-actions[bot] commented on GitHub (Sep 14, 2025): This issue might be a duplicate of existing issues. Please check: - #2357: Proposal for Chinese translation support - addresses Chinese language accessibility - #198: Support for Chinese input methods and layout in macOS terminal - #2593: Bug with garbled text when using non-ASCII characters (including Chinese) - #1857: Issues with syntax highlighting and text selection for non-English text Feel free to ignore if none of these address your specific case of configuring opencode to always respond in Chinese.
Author
Owner

@rekram1-node commented on GitHub (Sep 14, 2025):

I think you could make a global AGENTS.md and include things like:

I only speak mandarin so you must always respond in chinese.

Assume I know little to no english.

<CRITICAL>
  ALWAYS RESPOND IN CHINESE
</CRITICAL>

You most likely would want this prompt to be at least a few sentences and consider using xml tag style sections to help llm.

Here are docs for AGENTS.md files. You also may want your prompt to be in chinese instead of english too btw.

@rekram1-node commented on GitHub (Sep 14, 2025): I think you could make a global AGENTS.md and include things like: ``` I only speak mandarin so you must always respond in chinese. Assume I know little to no english. <CRITICAL> ALWAYS RESPOND IN CHINESE </CRITICAL> ``` You most likely would want this prompt to be at least a few sentences and consider using xml tag style sections to help llm. [Here](https://opencode.ai/docs/rules/) are docs for AGENTS.md files. You also may want your prompt to be in chinese instead of english too btw.
Author
Owner

@rekram1-node commented on GitHub (Sep 14, 2025):

Can you try that and lmk how it works for u?

@rekram1-node commented on GitHub (Sep 14, 2025): Can you try that and lmk how it works for u?
Author
Owner

@canomh commented on GitHub (Sep 14, 2025):

I followed the instructions given above to make the configuration, and then attempted to interact with OpenCode in 2 to 3 different models. It works for me either way.

Additionally, in the "thinking block" of the reasoning model, I observed "... ,but they previously stated that they only speak Mandarin and want me to always respond in Chinese. I should respond in Chinese as requested. …”

@canomh commented on GitHub (Sep 14, 2025): I followed the instructions given above to make the configuration, and then attempted to interact with OpenCode in 2 to 3 different models. It works for me either way. Additionally, in the "thinking block" of the reasoning model, I observed "... ,but they previously stated that they only speak Mandarin and want me to always respond in Chinese. I should respond in Chinese as requested. …”
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#1715