project-locale

Add and manage localized text in Flutter ARB files.

2|Updated Jul 3, 2025
One-click install
npx skills add https://github.com/gsmlg-app/flutter-app-template --skill project-locale
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: project-locale
Source: https://github.com/gsmlg-app/flutter-app-template/tree/main/.claude/skills/project-locale
Command: npx skills add https://github.com/gsmlg-app/flutter-app-template --skill project-locale

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This skill helps developers add and manage localized text within the Flutter application, ensuring a consistent and maintainable internationalization strategy.

Core Features & Use Cases

  • Adding New Text: Guides the process of adding new user-facing strings to the application's localization files.
  • Regenerating Localizations: Provides commands to regenerate localization files after changes.
  • Using Localized Text: Demonstrates how to access localized strings within Flutter widgets.
  • Adding New Locales: Outlines the steps to introduce support for new languages.

Quick Start

Use the project-locale skill to add the new string 'welcomeMessage' with the value 'Welcome to our app!' to the English ARB file and regenerate the localizations.

Frequently Asked Questions about project-locale

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

FAQPage Schema
How do I add new localized text to a Flutter application?

To add localized text to a Flutter app, insert new user-facing strings into the ARB files within the app_lib/locale package, adhering to specific ARB key naming conventions for consistency, then regenerate localization assets.

How do I use localized strings inside Flutter widgets?

You can use localized strings in Flutter widgets by accessing the generated localization assets after regenerating them from your ARB files, ensuring the application displays the correct text based on the user's locale.

What is the best way to manage internationalization in Flutter using l10n?

Managing internationalization in Flutter using l10n involves maintaining ARB files for text translations, following specific key naming conventions, and regenerating localization assets to ensure a consistent and maintainable localization strategy across the application.

Can I add support for new locales to an existing Flutter app?

Yes, you can add new locales to a Flutter application by outlining the steps to introduce support for new languages within the l10n conventions, updating the ARB files, and regenerating the necessary localization assets.

Why do I need to regenerate localizations after updating ARB files?

You need to regenerate localizations after updating ARB files to produce updated localization assets that allow Flutter widgets to access and display the newly added or modified localized text correctly.

What ARB key naming conventions should I follow for Flutter l10n?

You should follow specific ARB key naming conventions outlined in the l10n strategy to maintain consistency across your application's localization files, ensuring that the generated localization assets map correctly to the user-facing strings.