internationalization

Featured

Best practices for internationalization (i18n) and localization (l10n) in Flutter, using the built-in `flutter_localizations` and `intl` setup with ARB files as the single source of truth. Use when adding, modifying, or reviewing ARB translations, locale setup (`l10n.yaml`, `generate: true` in `pubspec.yaml`, `flutter gen-l10n`, `localizationsDelegates`, `supportedLocales`), BuildContext l10n extensions such as `context.l10n`, hardcoded user- facing strings that should be localized, localized strings passed into shared or reusable widgets, or RTL/directional layout support with `EdgeInsetsDirectional`.

Testing & QA 161 stars 22 forks Updated yesterday MIT

Install

View on GitHub

Quality Score: 87/100

Stars 20%
74
Recency 20%
100
Frontmatter 20%
70
Documentation 15%
100
Issue Health 10%
50
License 10%
100
Description 5%
100

Skill Content

# Internationalization Internationalization (i18n) and localization (l10n) best practices for Flutter applications using Flutter's built-in localization system with ARB files as the single source of truth. ## Core Standards Apply these standards to ALL internationalization work: - **Never hardcode user-facing strings** — all text must go through the l10n system - **Use Flutter's built-in localization system** — `flutter_localizations` + `intl`, never third-party i18n libraries - **ARB files are the single source of truth** for all translations - **`BuildContext` extension for cleaner l10n access** — use `context.l10n` instead of `AppLocalizations.of(context)` - **Pass localized strings as parameters to reusable widgets** — never couple shared widgets directly to `AppLocalizations` - **Use `EdgeInsetsDirectional` (start/end) instead of `EdgeInsets` (left/right)** — ensures correct layout in RTL languages - **Handle RTL layout properly** — use directional widgets for padding, positioning, and alignment - **Implement i18n early** — even if only one language is planned initially, the overhead is small and the long-term benefit is significant ## Key Definitions | Term | Definition | | ------------------------------- | ----------------------------------------------------------------------------------------------------- | | **Locale** | Set...

Details

Author
VeryGoodOpenSource
Repository
VeryGoodOpenSource/vgv-ai-flutter-plugin
Created
6 months ago
Last Updated
yesterday
Language
Shell
License
MIT

Bundled in these plugins

Similar Skills

Semantically similar based on skill content — not just same category