.agents/skills/localization/SKILL.md
Use this for localization work inside /Users/Shared/follow/FlClash, especially hardcoded UI text in lib/, ARB updates, missing translations, or generated lib/l10n/ output that does not match source ARB values.
Do not use this for README translation sync or manual edits to generated localization Dart.
Confirm pubspec.yaml still uses flutter_intl, source ARBs under arb/, and generated output under lib/l10n/.
Scan user-facing Dart text before opening many files:
rg -n "[\\p{Han}]" lib -g '!lib/l10n/intl/**' -g '!lib/**/generated/**'
Inspect the smallest relevant call sites and nearby ARB keys.
Add or update every source ARB:
arb/intl_en.arbarb/intl_zh_CN.arbarb/intl_ja.arbarb/intl_ru.arbReplace inline strings with existing project accessors:
BuildContext: context.appLocalizations.key from common.dart.currentAppLocalizations.key from app_localizations.dart.Regenerate:
dart run intl_utils:generate
Verify changed Dart files with flutter analyze when practical.
Re-run the Han-text scan for targeted strings.
lib/l10n/intl/** and lib/**/generated/** during text scans.