Prompt
How do I give translators enough context for UI text?
Latest observation
To help translators do a good job with UI text, give them context, not just strings. Small phrases like “Save,” “Open,” or “Back” can mean different things depending on where they appear.
Here’s what to provide:
1. A short description for each string
Explain:
- Where it appears: button, dialog, tooltip, menu, error message, etc.
- What it does: the user action or meaning
- Any constraints: max length, tone, formality
Example
- String:
Save - Context: Button on the document editor that stores changes to the current file
- Notes: Must fit on a mobile button
2. Screenshot or mockup
A screenshot is often the best context. It shows:
- surrounding text
- UI layout
- whether the string is a title, label, or button
- what the user is likely doing
3. Contextual comments in the localization file
If you use i18n files, add translator notes next to tricky strings.
Example
{
"saveButton": {
"text": "Save",
"comment": "Button in the editor toolbar. Saves the current document."
}
}
4. Message placeholders with explanations
For dynamic text, explain what variables mean.
Example
You have {count} unread messages{count}= number of unread messages- Use plural rules correctly
5. Tone and style guidance
Tell translators whether the product is:
- formal or casual
- friendly or technical
- imperative or descriptive
Example
- Use concise, friendly UI language
- Avoid slang
- Keep button labels as short as possible
6. Reuse notes for ambiguous words
Words like “Close,” “Cancel,” “Archive,” or “Share” can be ambiguous. Tell translators what the action means in your app.
Example
Close= close the dialog, not exit the appArchive= move the item to archived state, not create a file archive
7. Tell them what not to translate
Flag:
- product names
- brand names
- variable tokens
- code fragments
- file paths
- hashtags or usernames
Good translator note template
You can use something like:
- Key:
delete_confirm_title - String:
Delete file? - Context: Confirmation dialog shown before permanently deleting a file
- Tone: Direct and concise
- Notes: “file” refers to a user-uploaded document; keep under 25 characters if possible
Best practice
If you can only do one thing, do this:
Provide a screenshot plus a short translator note for every ambiguous string.
If you want, I can also give you:
- a translator context checklist,
- a sample localization file format, or
- examples for common UI strings like buttons, errors, and notifications.