flutter-localization

Configure Flutter apps with flutter_localizations, intl, and ARB files.

1|Updated Mar 6, 2026
One-click install
npx skills add https://github.com/takzobye/flutter_social_share_plus --skill flutter-localization
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: flutter-localization
Source: https://github.com/takzobye/flutter_social_share_plus/tree/main/.agents/skills/flutter-localization
Command: npx skills add https://github.com/takzobye/flutter_social_share_plus --skill flutter-localization

SYSTEM DOCUMENTATION & REQUIREMENTS

## What problem does it solve?
Flutter apps often struggle to reach non-English-speaking users due to missing localizations and inconsistent locale handling. This skill guides developers to properly configure flutter_localizations, Intl, and ARB-based translations to deliver a polished multilingual experience across iOS and Android.

## Core Features & Use Cases

  • Setup dependencies and generation: enable flutter_localizations, intl, and code generation with flutter gen-l10n.
  • ARB management: structure app_en.arb and translations for supported locales and scripts.
  • App/root integration: modify MaterialApp/WidgetsApp root to provide localizationDelegates, supportedLocales, and Locale resolution logic.
  • Platform considerations: ensure iOS/Android projects expose locales in Info.plist and AndroidManifest, and update Xcode project when targeting iOS.
  • Use case: quickly add i18n to a new or existing Flutter project, enabling UI strings to appear in the user’s language and regional variants, including scripts like zh-Hans.

### Quick Start
Configure dependencies, create ARB files, and run flutter gen-l10n to generate localization classes and wire them into your root widget.

Frequently Asked Questions about flutter-localization

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I add multilingual support to a Flutter app using ARB files?

To add multilingual support in Flutter, configure flutter_localizations and intl dependencies, create app_en.arb files for translations, and run flutter gen-l10n to generate localization classes. Wire the generated delegates into your MaterialApp root widget.

What is the best way to manage Flutter i18n code generation?

The best way to manage Flutter i18n code generation is using flutter gen-l10n with intl. Define translations in ARB files and execute code generation to create localization classes, ensuring UI widgets display localized content across supported locales.

How do I configure localizationDelegates and supportedLocales in a Flutter MaterialApp?

Configure localizationDelegates and supportedLocales in your Flutter MaterialApp by adding flutter_localizations delegates, specifying supported locales in the app root, and applying locale resolution logic to match user device languages.

Do I need to update iOS Info.plist and AndroidManifest for Flutter localization?

Yes, you must update iOS Info.plist and AndroidManifest for Flutter localization. Platform-specific adjustments expose supported locales to the operating system, ensuring iOS and Android correctly resolve regional variants and scripts like zh-Hans.

Why does flutter gen-l10n fail to resolve locale variants like zh-Hans?

Flutter gen-l10n fails to resolve locale variants like zh-Hans when ARB files lack proper script definitions or locale resolution logic is missing. Ensure app locale ARB files match supported locales and root app setup isolates localization resources correctly.

Can I use flutter_localizations with intl for an existing Flutter project?

Yes, you can use flutter_localizations with intl for an existing Flutter project. Modify the root WidgetsApp to provide localizationDelegates, structure ARB files for supported locales, and validate platform-specific iOS and Android adjustments.