localization
Skill0 starsChanged 49 days agoMITView on GitHub
Walks through the ARB localization workflow end to end — adding a key with @key metadata (plus placeholders/plurals) to app_en.arb, translating app_es.arb, regenerating with fvm flutter gen-l10n, and consuming via context.l10n; triggers whenever a new user-facing string is being added or changed in packages/ui.
21 other projects use a version of this.
Adopted by
Most recently taken up by
- parker-brown-family/agent-skillstheir own version, first seen Nov 8, 2026
- AnyOrgName/php-skillstheir own version, first seen Nov 8, 2026
- ghuntley/loomtheir own version, first seen Nov 1, 2026
- jame581/GodotPromptertheir own version, first seen Oct 21, 2026
- PhoenixNest/AGENT-GLOBAL-BASEtheir own version, first seen Oct 20, 2026
- glrodasz/dotfilestheir own version, first seen Oct 17, 2026
Used with
Projects with it also use ab-test-store-listing, app-analytics and 10 more.
Other files people use alongside this one.
Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
appeekySkillab-test-store-listing
When the user wants to A/B test App Store product page elements to improve conversion rate. Also use when the user mentions "A/B test", "product page optimization", "test my screenshots", "test my icon", "conversion rate optimization", "CPP", or "custom product pages". For screenshot design, see screenshot-optimization. For metadata optimization, see metadata-optimization.
Also in 3 projects that use this
appeekySkillapp-analytics
When the user wants to set up, interpret, or improve their app analytics and tracking. Also use when the user mentions "analytics", "tracking", "metrics", "KPIs", "App Store Connect analytics", "install tracking", "funnel", "attribution", or "how is my app performing". For A/B testing, see ab-test-store-listing. For retention metrics, see retention-optimization.
Also in 3 projects that use this
- +10 more from appeeky
Other versions21 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 21
- chen08209/FlClash★ 62ksame name
- appeeky/aso-skills★ 2.2ksame name
- Eronred/aso-skills★ 2.2ksame name
- ghuntley/loom★ 1.7ksame name
- igorescodro/alkaa★ 1.6ksame name
- jame581/GodotPrompter★ 870same name
- bagofwords1/bagofwords★ 463same name
- CamilleScholtz/swmpc★ 239same name
- everpcpc/KMReader★ 118same name
- glrodasz/dotfiles★ 20same name
11 more not listed
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository35 other files it gives its agents.
- AGENTS.mdAGENTS.md
- bootstrap-projectSkill
- choose-data-stackSkill
- code-reviewSkill
- conventional-commitsSkill
- data-providerSkill
- domain-modelingSkill
- error-handlingSkill
- flavors-and-flagsSkill
- flutter-fvmSkill
- new-featureSkill
- quality-gateSkill
- routingSkill
- state-managementSkill
- testingSkill
- themingSkill
- ui-screenSkill
- bootstrap-projectSkill
- choose-data-stackSkill
- code-reviewSkill
- conventional-commitsSkill
- data-providerSkill
- domain-modelingSkill
- error-handlingSkill
- flavors-and-flagsSkill
- flutter-fvmSkill
- flutter_fvmSkill
- localizationSkill
- new-featureSkill
- quality-gateSkill
- routingSkill
- state-managementSkill
- testingSkill
- themingSkill
- ui-screenSkill
The file
We split this skill into the rules it gives an agent
4 rules. 0 are common, 0 are distinctive, and 4 are very specific to this project.
0
Common
Most of the 19 edited versions we read keep these.
0
Distinctive
This author's own choices. Worth a look.
4
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 16
Every string starts in packages/ui/lib/l10n/app_en.arb — the template-arb-file per packages/ui/l10n.yaml.
- Very specific: line 84
Add the matching key (same key, translated value) to packages/ui/lib/l10n/app_es.arb.
- Very specific: line 105
Run from inside packages/ui/:
- Very specific: line 127
Always go through the BuildContextX extension (packages/ui/lib/src/theme/context_extensions.dart), never AppLocalizations.of(context)!
“Common” is measured: kept by at least 6 in 10 of the 19 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Localization (ARB workflow)
packages/ui has Flutter localization fully configured via gen-l10n
(root AGENTS.md section 11). No hardcoded user-facing string is
allowed anywhere in packages/ui/ — this is a zero-exception rule, not
a style preference, and is listed under "Forbidden patterns" in root
AGENTS.md section 20.
1. Add the key to the template ARB file
Every string starts in packages/ui/lib/l10n/app_en.arb — the
template-arb-file per packages/ui/l10n.yaml. Add the key, its value,
and an @key metadata block with a description explaining where/how the
string is used (this becomes the doc comment on the generated getter):
{
"@@locale": "en",
"taskListTitle": "Tasks",
"@taskListTitle": {
"description": "Title of the task list screen's app bar."
},
"deleteTaskButtonLabel": "Delete task",
"@deleteTaskButtonLabel": {
"description": "Semantics/tooltip label on the icon button that deletes a task."
}
}2. Placeholders (parameterized strings)
A string with a runtime value declares a placeholders block in the
@key metadata, with a type for each placeholder:
{
"taskCreatedMessage": "\"{title}\" was added to your list.",
"@taskCreatedMessage": {
"description": "Snackbar shown after a task is created.",
"placeholders": {
"title": {
"type": "String",
"example": "Buy milk"
}
}
}
}This generates String taskCreatedMessage(String title) — consume it as
context.l10n.taskCreatedMessage(task.title).
3. Plurals (ICU syntax)
A count-dependent string uses ICU plural syntax in the value, with a
NUM (or any name) placeholder typed as int:
{
"taskCountLabel": "{count, plural, =0{No tasks} =1{1 task} other{{count} tasks}}",
"@taskCountLabel": {
"description": "Summary label showing how many tasks are in the current list.",
"placeholders": {
"count": {
"type": "int"
}
}
}
}Consume it as context.l10n.taskCountLabel(state.tasks.length). gen-l10n
generates the plural-selection logic — never hand-roll an if
(count == 1) ... else ... string switch in Dart for something ICU already
expresses declaratively.
4. Translate app_es.arb
Add the matching key (same key, translated value) to
packages/ui/lib/l10n/app_es.arb. Non-template ARB files carry no
@key metadata blocks — only the template file (app_en.arb) does:
{
"@@locale": "es",
"taskListTitle": "Tareas",
"deleteTaskButtonLabel": "Eliminar tarea",
"taskCreatedMessage": "\"{title}\" se añadió a tu lista.",
"taskCountLabel": "{count, plural, =0{Sin tareas} =1{1 tarea} other{{count} tareas}}"
}Placeholder names and ICU variable names must match exactly between
app_en.arb and app_es.arb — gen-l10n generates one function per key
shared across all locales, so a mismatched placeholder name is a codegen
error, not a silent runtime issue.
5. Regenerate
Run from inside packages/ui/:
fvm flutter gen-l10nThis reads packages/ui/l10n.yaml:
arb-dir: lib/l10n
template-arb-file: app_en.arb
output-localization-file: app_localizations.dart
output-dir: lib/src/l10nGenerated output lands in packages/ui/lib/src/l10n/ — never hand-edit
it; it is fully overwritten on every gen-l10n run. Do not add
synthetic-package: true to l10n.yaml — that option has been removed
from Flutter and will fail codegen.
6. Consume via context.l10n
Always go through the BuildContextX extension
(packages/ui/lib/src/theme/context_extensions.dart), never
AppLocalizations.of(context)! directly:
// Wrong
Text(AppLocalizations.of(context)!.taskListTitle);
// Right
Text(context.l10n.taskListTitle);
Text(context.l10n.taskCreatedMessage(task.title));
Text(context.l10n.taskCountLabel(state.tasks.length));Common mistakes
- Adding a string only to
app_en.arband forgettingapp_es.arb—gen-l10nwill fail (or fall back silently in some configurations) if a key is missing from a non-template locale. - Adding
@keymetadata toapp_es.arb(or any non-template file) — metadata belongs only in the template ARB file. - Hand-rolling plural logic in Dart (
count == 1 ? '...' : '...') instead of ICUpluralsyntax in the ARB value. - Forgetting to run
fvm flutter gen-l10nafter an ARB edit — the code won't see the new key until regenerated, and CI'stool/quality_gate.dartwill catch a stale generated file. - Interpolating a raw Dart string into UI at all, even for something that
"feels" like a code value (an error code, a debug label) if it is
user-facing — the rule in root
AGENTS.mdsection 11 has no exception for "small" strings. - Setting
synthetic-package: trueinl10n.yaml.
Checklist
- Key +
@key(withdescription, andplaceholdersif parameterized) added toapp_en.arb. - Matching translated key added to
app_es.arb, with identical placeholder/ICU variable names. fvm flutter gen-l10nrun frompackages/ui/.- Consumed via
context.l10n.yourKey, notAppLocalizations.of(context)!. - No hardcoded user-facing string literal remains anywhere in the
changed
packages/ui/code, includingSemantics/tooltiplabels.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

