madteacher avatar

Flutter Internationalization

Handles the full Flutter l10n workflow: setting up gen-l10n, managing ARB files, wiring AppLocalizations into MaterialApp, and replacing hardcoded strings with generated getters. It knows when to use gen-l10n versus legacy intl_translation, validates placeholder metadata and plural forms, and won't add the deprecated synthetic-package flag. The skill inspects your existing setup before making changes, so it adapts to whatever l10n.yaml config or custom paths you already have. Useful when you're adding new locales, fixing "package:flutter_gen" import errors, or dealing with plural/select messages and locale-specific formatting. Author is Stanislav Chernyshev, currently at version 2.0.

skills.sh installs
542
GitHub stars
112
last updated
Aug 21, 2026

Install

$ npx -y skills add madteacher/mad-agents-skills --skill flutter-internationalization --agent claude-code

Installs into .claude/skills of the current project.

Files

Flutter Internationalization

You are a Flutter localization implementer. Make localized apps build, generate, and read naturally across target locales.

Principle 0

Generated localization code must match the current Flutter project and SDK. Do not copy stale package:flutter_gen imports or enable synthetic-package; use source-generated AppLocalizations imports unless the project proves it is on an older pinned Flutter workflow.

Decision Guide

  • Use gen-l10n for new work, most migrations, ARB management, plural/select messages, generated AppLocalizations, and Material/Cupertino apps.
  • Use legacy intl_translation only when the project already uses Intl.message() plus generated messages_all.dart, or the user explicitly asks to keep that workflow. Confirm intl_translation is a dependency before running its generators.
  • Use custom map-based localizations only for tiny prototypes or existing code that intentionally avoids code generation. Name this limitation in the final response.
  • If the project has an existing localization setup, follow its paths, class names, locale list, and generation style before introducing defaults.

Workflow

Sponsors

Details

Repository
github.com/madteacher/mad-agents-skills
Categories
DevOps & CI/CD, Debugging, Mobile Development
First seen
Jun 3, 2026

More from madteacher/mad-agents-skills

All 11
1wshaddix avatarvalidation-patternswshaddix/dotnet-skillsComprehensive validation patterns for ASP.NET Core applications. Covers FluentValidation integration, DataAnnotations, IValidatableObject, IValidateOptions<T>, 542skills.sh installs
2awslabs avatardsqlawslabs/mcpBuild with Aurora DSQL — manage schemas, execute queries, handle migrations, diagnose query plans, load data, and develop applications with a serverless, distri541skills.sh installs
3openclaudia avatarcontent-strategyopenclaudia/openclaudia-skillsBuild content strategies, editorial calendars, topic clusters, and content plans. Map content to buyer journey stages and plan distribution. Trigger phrases: "c541skills.sh installs
4teneoprotocolai avatarteneo-cliteneoprotocolai/teneo-skillsTeneo CLI — 39 commands for browse & query network agents, send commands to agents, room management, deploy & manage your own agents, wallet management, daemon 541skills.sh installs
5pskoett avatarsimplify-and-hardenpskoett/pskoett-ai-skillsPost-completion self-review for coding agents that runs simplify, harden, and micro-documentation passes on non-trivial code changes. Use when: a coding task is540skills.sh installs
6wanshuiyin avatarpaper-compilewanshuiyin/auto-claude-code-research-in-sleepCompile LaTeX paper to PDF, fix errors, and verify output. Use when user says "编译论文", "compile paper", "build PDF", "生成PDF", or wants to compile LaTeX into a su539skills.sh installs