Translate a Flutter app's ARB files, or a lumide_l10n checkout, in a pane made for it. You translate whole sentences, never ICU: a plural is one sentence per case. Gray boxes are what the app fills in, and every string is checked as you type.
Your files stay the truth, byte for byte. Saving changes only the values you edited: no re-sorting, no reformatting.
TL;DR
- Open a Flutter app with
l10n.yaml(orlib/l10n/*.arb), or alumide_l10ncheckout.- Run Open Translations from the command palette, or Add Pane β Translations.
- Pick a language, type, press
β΅. That's it.
π What it opens#
| Project | Found by | Untranslated |
|---|---|---|
| Flutter gen-l10n |
l10n.yaml
(
arb-dir
,
template-arb-file
), else
lib/l10n/*.arb
|
A key missing from the language's file |
lumide_l10n |
en/ and locales/ beside tool/bin/l10n.dart |
An empty string |
The template (app_en.arb, or en/) says which keys exist and what each needs. Every check compares against it, and the pane never changes it while you translate.
Each file of the template is an area: app_en.arb and settings_en.arb
are app and settings. Pick one in the sidebar to see only its strings.
Edit the files by hand, or pull a teammate's changes, and the pane reads them again on its own. Your unsaved translations stay; one whose string changed on disk too is marked, so you pick which to keep.
An .arb file opens as code, with a Translations mode in its editor header. It shows that file's area and language, apart from the pane, and keeps your place: the string at your cursor is the one selected, and the cursor moves to the string you pick. Edits are shared, so the pane and the mode never disagree.
βοΈ Translating#
The header picks the language you translate, and the one you read while translating: "ζ₯ζ¬θͺ from English". Read Spanish if you're faster in it; Traditional Chinese starts best from Simplified. The reference changes what's shown, never what's checked.
The list puts what's left first. Click a row and it edits in place:
-
β΅saves that string and moves to the next one to do.β§β΅adds a line.Esctakes your edit back. β1β¦9inserts the English's placeholders. Typing{offers them too.-
Your AI completion provider (Copilot, Supermaven, a plugin's) suggests the translation as gray text, from the neighbouring translations and the string's description.
Tabtakes it.
Plurals and selects become one whole sentence per case, under the template's sentence for it: "when 0", "when 1", "other, e.g. 5".
{date}: {count, plural, =0{no check-ins} β¦} is just "{date}: no check-ins" when 0. Polish gets
few and many too, with the template's other sentence beside them; Japanese gets only
other. Lumide writes the ICU back for you, in the file's own shape. Developers can still
Edit as ICU from a row's menu.
Gray boxes are filled in by the app. Hover one to see what goes there, such as "e.g. Mon 23 Nov", and keep it in your sentence.
βS saves everything changed. A string with an error isn't saved: its field keeps your text and says why.
π Checks#
| Check | Level |
|---|---|
| ICU syntax; a placeholder missing, renamed or added | Error |
| A plural form your language needs | Error |
A placeholder the ARB's @key doesn't describe | Error |
| A plural form your language never uses | Warning |
| 1.5Γ and 20 characters longer than the English | Warning |
Spaces at the ends, double spaces, a lost β¦ or final punctuation, same as the English |
Hint |
Same on Purpose, in a row's menu, quiets the last one for "OK" or "Git".
π’ Status#
| Dot | Status |
|---|---|
| Hollow | To do |
| Red | An issue |
| Half | Outdated: the English changed since this was translated |
| Dashed | Draft: an agent wrote it, and nobody reviewed it yet |
| None | Done |
The sidebar keeps it short: To do, Needs a look (issues, outdated strings and drafts) and All. Drag its edge to make it wider, or hide it with the button at the top left: search and the filters move over the list.
Search looks through keys, the English, the translation and the notes. Accents don't matter, so chung toi
finds "chΓΊng tΓ΄i", and a word can be part of a longer one: fail finds saveFailed. Exact phrases come first, then whole words. It searches every language too: a string found only in another one comes last, with that language's text under it. What matched is highlighted in every row.
The list holds still while you work. A string you save, or a language you pick in the grid, stays where it is. Click the filter again to tidy up. A row shows one problem at most, in plain words, with one Fix; smaller notes sit behind a β .
An outdated string shows the English it was translated from, struck through, above the new English.
Where these marks live is up to you, in Settings β Editor β Translations β Keep Review State in Translation Files:
- Off (the default): they stay on this computer. Your files get nothing but the translations.
- On: they're saved in the translation file, as the ARB format intends, and shared through Git with everyone else's. Only the strings you save get a note, right after them:
"save": "Store",
"@save": {
"source_text": "LΖ°u",
"x-state": "draft"
}
source_text is the English the translation was made from, and x-state marks a draft until it's approved. Flutter's gen-l10n ignores both in your language files, and your template is never touched. Either way, notes a teammate already saved are read and honoured.
π€ Agents#
Agents translate through Lumide's tools (translations_projects, translations_list,
translations_get, translations_set, translations_check), so their work goes through the same checks and the same writer as yours. An agent never edits the JSON by hand.
- Translate with an Agent⦠(⨠in the header) starts an Agent Chat for what the list shows.
-
Strings fill in live as Drafts. Review them under Needs a look:
ββ§Rapproves one, Approve All Without Issues takes the batch. -
Add to Agent Chat (
βL) sends a string with its context: "is this too formal?" - Fix with Agent on an issue sends the string and what's wrong.
π For developers#
- Used in: the details show the code using each key. Click to jump there.
-
New String (
+in the header, or an area's menu) asks for the key, the English and a note for translators, and adds it to the English. - For developers, in the sidebar: Unused lists keys no code uses. Missing lists keys your code uses that the English doesn't have, each with Add to English.
- Delete Key⦠removes a key from every language, after checking again that no code uses it.
- Rename Key⦠renames it in every language and in your code.
- Edit Translations, in the editor's menu or the command palette, opens the pane on the key at your cursor.
-
Grid (
ββ₯G) shows keys down and languages across, to check one key everywhere.
β¨οΈ Keys#
| Action | Default |
|---|---|
| Save and next to do | β΅ |
| Next / previous to do | ββ΅ / ββ§β΅ |
| Next / previous string | β₯β / β₯β |
| From search into the list | β |
| Next issue | F8 |
| Insert placeholder 1β¦9 | β1β¦9 |
| Copy English to field | ββ§C |
| Approve / mark draft | ββ§R |
| Add to Agent Chat | βL |
| Focus search | βF |
| Toggle details | βI |
| List / grid | ββ₯G |
| Save | βS |
Change them in Settings β Keymap β Translations. On Windows and Linux, Ctrl
replaces β, and Alt replaces β₯.
π In your browser#
translate.lumide.dev is the same pane, with nothing to install:
-
Open Folder⦠or Open Zip⦠with your app or
lumide_l10n. - Translate. Your edits stay in this browser until you download them.
- Download Changes gives a zip of only the files you changed, in your repository's layout. Unzip it over your checkout, and you're good to go!
