How to build AI features that work in several languages

Updated · 5 min read

Detect the language, then decide what to trust

Language detection is usually reliable for a full sentence and weak for a single word, a product code or a mixture of languages. Short messages, names and brand terms are common failure points. Use the app's locale setting or the user's account preference first, and use detection only to suggest a default.

  • Let the user change the reply language with one tap or click.
  • Treat code-switched messages, where a user mixes English and Chinese in one sentence, as a separate case and test them on their own.
  • Keep the detected language with the conversation, so a follow-up question is answered in the same language unless the user switches.

Answer in the user's language, and say so in the instructions

State the reply language in the system instructions and pass it with each request, not only once at the start of a session. Models usually follow the instruction, but they can drift toward English when the source material is in English. Test that drift directly with a set of questions in each language.

Quoted source text should stay in its original language, with a translation beside it if the user needs one. Translating a policy clause silently can change its meaning, so show the original wherever the exact wording matters.

Retrieval across languages: finding the answer in another language

If your knowledge base is in English and users ask in Thai, the search must match meaning across the two languages. Multilingual embedding models place sentences with the same meaning close together even when the words differ. Quality varies by language pair, so test retrieval for each pair you serve.

  • Keep source documents in their original language, with a language tag on each one.
  • Either embed everything in one multilingual space, or translate the question into the document language before searching. Compare both approaches on real questions.
  • Show the user the source passage and its language, so they can check the original.

Glossaries and terms that must not change

Product names, legal terms, feature names and brand names must read the same way everywhere. A glossary lists each term with its approved translation and any wording that must never be used. Give the glossary to the model in every request that produces user-facing text, and check outputs against it automatically.

Keep a short do-not-translate list for brand names, product codes and identifiers. Without it, a model may translate a name that customers search for in its original form.

Script, direction and layout

Each writing system brings its own layout problems, and they are easy to miss when the team reads only one language.

  • Right-to-left languages such as Arabic and Hebrew need the layout mirrored, and numbers and English terms inside them need careful handling.
  • Thai is written without spaces between words, so line breaking and search need a word segmentation tool, the same problem Chinese has.
  • Thai and some other scripts use stacked vowel and tone marks. Check that the font you ship supports them and that text does not clip inside buttons.
  • Test fonts and layout on a real phone, not only in a desktop browser window.

Evaluate quality for each language

An overall score hides weak languages. Build a test set for each language, written or checked by a native speaker, and score accuracy, tone, terminology and completeness separately. A single average across languages will let a poor result in one market pass unnoticed.

Track cost and response time per language too. Tokenisers count text differently across scripts, so the same question can cost more in some languages than in others. Measure real requests in each language rather than estimating from English, and assign one named person to own the quality of each language.

How Hundred Seas helps

Hundred Seas is a product studio in Taipei that builds AI features, mobile and web apps and AI agents for businesses that serve more than one language. We work in English, Traditional Chinese and Simplified Chinese ourselves. We build on Claude and on OpenAI models, and we choose the model for each language and task on cost, speed, quality and where the text must be processed. We are a registered partner in Anthropic's Claude Partner Network and an OpenAI partner.

A project starts with a scope step of about one week at a fixed price, ending in a written plan and a firm quote. The build then follows in weekly releases of working software, and a monthly run plan keeps the language tests, glossaries and features up to date.

Questions

Do I need a separate app for each language?
Usually not. One application can serve many languages if the interface text is kept outside the code, the AI features read the user's language setting, and content is stored with a language tag. Separate apps make sense only for very different products or for markets with their own rules.
Will the model answer in the language I ask in?
Usually, when the instructions say so explicitly. Do not rely on the question alone, because English source material can pull the reply toward English. State the reply language in each request, and test it with mixed-language questions before launch.
Can AI search find an English document from a Thai question?
It can, using multilingual embeddings or by translating the question before the search. Quality varies by language pair, so test with real questions in each language. Show users the original passage so they can check the answer against the source.
Why does my AI feature cost more in some languages?
Tokenisers count text differently across scripts, and some languages need more tokens to express the same meaning. Check your model provider's current pricing, and measure real requests in each language rather than estimating from English. Keep prompts and glossaries as short as they can be while staying clear.
How do I check quality in a language I do not read?
Contract a native speaker for that language, give them real examples and a short checklist, and ask them to score accuracy, tone and terminology. Automated checks can find missing glossary terms and broken characters, but they cannot judge whether the wording reads naturally.

Have a project in mind?

Tell us what you want to build. We reply with a plan, not a sales call.

AboutHow to build AI features that work in several languages