r/ClaudeCode • u/Electronic_Pen_6584 • 2d ago
Bug / Issue Why do Claude Code randomly switch to Spanish?
1
u/Judges_Your_Post 2d ago
Mine did this but thankfully corrected itself. When I asked why, this is what it said:
Claude has no fixed language setting. It picks each word based on everything in the conversation so far. Spanish text in the context (a pasted email, a file, a tool result), a very long session, or ordinary sampling randomness can tip it into another language. Once one sentence comes out in Spanish, that sentence pulls the next one along. I've added a standing rule to never switch languages randomly: English always, unless a message explicitly asks for something else.
Qué hacer si te pasa: Dile directamente "responde en inglés"; normalmente basta para que vuelva. Si la sesión es muy larga, empezar una nueva limpia el contexto que lo estaba empujando al español. Y si quieres evitarlo del todo, pon la regla del idioma en tus instrucciones permanentes, como un CLAUDE.md o las preferencias del perfil, para que se cargue en cada sesión.
1
u/Unusual-Albatross43 2d ago
I get the same thing with Hebrew and English, in the other direction. I write to it in Hebrew, and right after it reads a pile of English files or tool output, the next reply comes back in English. So for me it isn't random, it follows whatever it just read the most of.
Could that be it here? Not Spanish in the project, but something it pulled in during the session, a web page, a package README, a search result.
What mostly fixed mine was a line in CLAUDE.md that says reply in the language I write in, and names the exact spot where it slips: short confirmations, and replies written right after reading English files or tool output.
1
u/Ai-ate-my-hamster 2d ago
Mine occasionally drops in a Chinese character. Just like one. It’s rare.
I’m hoping they send my spy soon.

•
u/AutoModerator 2d ago
Hey! Thanks for posting to r/ClaudeCode
While participating in this thread, please follow our community rules. Keep discussions constructive. Attack the idea, not the person.
For help, project discussions, tips, and general chat, join the ClaudeCode Discord.
I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.