Prompt
I'm building a SaaS app and need glossary-controlled translation
Latest observation
Nov 2, 2026
OpenAI APIWeb search: off
Yes — glossary-controlled translation is a very common SaaS requirement.
At a high level, you want translations that:
- Respect a domain glossary
e.g. “workspace” must always translate as a specific term, never a synonym. - Stay consistent across the product
- Support updates/versioning
- Work at scale for UI strings, docs, emails, and possibly user-generated content.
Typical approaches
1) Machine translation + glossary enforcement
Use an MT engine that supports glossaries, such as:
- DeepL Glossary
- Google Cloud Translation glossary
- Amazon Translate custom terminology
Best when you want fast, scalable translation with controlled terminology.
2) Translation memory + human review
Store approved translations for phrases and reuse them:
- Useful for product UI and recurring strings
- Helps with consistency and cost reduction
- Often paired with human translators or LSP workflows
3) LLM-assisted translation with glossary constraints
Use an LLM to translate, but provide:
- a glossary
- style guide
- example translations
- validation rules
This is flexible, but you’ll want automated checks because LLMs can still drift.
Recommended architecture for a SaaS app
Data model
Maintain:
- Glossary terms
- source term
- target language
- approved translation
- notes/context
- do-not-translate flag
- status/version
- Translation units
- source string
- target locale
- translated string
- metadata, usage, review state
- Context
- product area
- screen/component
- screenshots or notes, if available
Workflow
- Extract strings from app
- Detect if string contains glossary terms
- Send to translation engine with glossary context
- Validate output:
- glossary terms preserved
- placeholders unchanged
- length/format constraints satisfied
- Store in translation memory
- Human review for edge cases
Important implementation details
Placeholder safety
Preserve tokens like:
{name}%s{{count}}- ICU plurals
You should enforce these programmatically.
Terminology conflicts
Glossaries can clash with grammar:
- term inflection in gendered languages
- pluralization
- sentence position changes
Some languages require multiple approved forms per term.
Locale-specific glossaries
A term may need different translations depending on locale:
- en-US vs en-GB
- pt-BR vs pt-PT
- es-ES vs es-MX
Style guide
Glossary alone is not enough. Define:
- formal vs informal tone
- capitalization rules
- whether to transliterate product names
- how to handle brand names and UI labels
If you want to build it yourself
A practical MVP:
- Glossary service
- CRUD APIs
- term matching
- locale-specific entries
- Translation service
- MT provider adapter
- glossary injection
- QA service
- placeholder validation
- glossary compliance checks
- forbidden term detection
- Review dashboard
- approve/reject
- edit translations
- track versions
Example glossary entry
{
"source": "workspace",
"locale": "fr-FR",
"translation": "espace de travail",
"notes": "Use for SaaS product area; do not translate as bureau.",
"status": "approved",
"do_not_translate": false
}
Example validation rule
- Source string contains
workspace - Target string must contain
espace de travail - Must not contain
bureau
If you want, I can help you with one of these next:
- designing the glossary data model
- choosing a translation provider
- writing a translation API workflow
- building glossary enforcement rules
- creating an implementation in Python/Node/Go