Translation Workflows in Code, Done Properly
How translatable text is extracted from an application, sent to translators and returned into the build.
On this page
The key figures
- Extraction
- strings should live in resource files, not markup
- Context
- translators need context to translate accurately
- Pluralization
- languages have different plural rules
- Continuous localization
- translations can be part of the build pipeline
Why this is worth getting right
Hard-coded strings and manual copying make localization slow and error-prone.
Do this, not that
Do
- Externalize all user-facing strings
- Provide context notes for translators
- Use proper plural and formatting support
- Automate the translation round trip
- Test the interface in the longest language
Don’t
- Concatenating sentences from fragments
- Strings hard-coded in templates
- Manual copy and paste of translations
- Layouts that break with longer text
When to bring in help
Our advice Bring in help when products ship in several languages.
Where this comes from
- MDN Web Docs — Intl
- W3C — Text size in translation
The figures and practices above come from the sources listed.
Working on something like this?
We take on Web Design & Development work for teams who want it done once, properly. Tell us what you are building and we will tell you honestly whether we are the right studio for it. Start a project.
Where to go next
Spotted something wrong? Report an error on this page. We correct on the page and say what changed.