prprompts-flutter-generator: Command for Claude Code

.claude/commands/localization/localize-app.md

localize-app is a command for Claude Code from Kandil7/prprompts-flutter-generator. It costs 0 tokens per session (1,509 once invoked), scanned A, original, MIT.

A command that adds Arabic and English translation support to an existing Flutter app. It finds text written directly in Dart code and creates the translation files and project settings needed for localization.

In plain words
What is it for?
Use it to scan a Flutter project, create English and Arabic ARB translation files, update dependencies and configuration, and validate the setup.
Why use it?
It removes much of the manual work involved in finding user-facing text and setting up language files. Localization means adapting an app so it can display different languages.

Command for Claude Code

Written for Claude Code: installed under .claude/.

This is Kandil7/prprompts-flutter-generator's own configuration. It tells Claude Code how to work on prprompts-flutter-generator itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything prprompts-flutter-generator configures →

Part of the prprompts-flutter-generator plugin — 25 commands, 4 hooks shipped together

Reuse

Borrowing it

Nothing to install: this file belongs to Kandil7/prprompts-flutter-generator. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/Kandil7/prprompts-flutter-generator/master/.claude/commands/localization/localize-app.md
Clone the repo
git clone --depth 1 https://github.com/Kandil7/prprompts-flutter-generator

Made for: Claude Code.

Or install prprompts-flutter-generator, the plugin that ships this one along with the rest of its 25 commands, 4 hooks.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for localize-app

README.md
[![agentmods](https://agentmods.dev/badge/commands/kandil7/prprompts-flutter-generator/localize-app.svg)](https://agentmods.dev/commands/kandil7/prprompts-flutter-generator/localize-app)
Your own site
<a href="https://agentmods.dev/commands/kandil7/prprompts-flutter-generator/localize-app"><img src="https://agentmods.dev/badge/commands/kandil7/prprompts-flutter-generator/localize-app.svg" alt="Measured on agentmods" height="20"></a>
Per session 0 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 1,509 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00000 $0.01509
Opus 5 $0.00000 $0.00754
Sonnet 5 $0.00000 $0.00302
Haiku 4.5 $0.00000 $0.00151

Measured 7d ago against content hash 52c44d42b8d7, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-07, from the pricing page.

Security

Grade A, and why

localize-app scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 7d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

.claude/commands/localization/localize-app.md · 233 lines

How it starts

The opening of the file, as written. The whole thing — 233 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Flutter App Localization - One Command Setup

Automatically localize an existing Flutter app with Arabic-English (ar-en) support in one command.

Overview

This command will:

  1. ✅ Scan your Flutter project for hardcoded strings
  2. ✅ Generate ARB files (app_en.arb master, app_ar.arb translation)
  3. ✅ Create l10n.yaml configuration
  4. ✅ Update pubspec.yaml with dependencies
  5. ✅ Generate comprehensive integration guide
  6. ✅ Validate the entire setup

Step 1: Validate Flutter Project

Check that the current directory is a valid Flutter project:

  • pubspec.yaml exists
  • lib/ directory exists
  • Contains .dart files

If not valid, show error message:

❌ Error: Not a Flutter project
Current directory: {current_dir}

Please cd to your Flutter project root directory and try again.

Step 2: Scan for Hardcoded Strings

Scan all .dart files in lib/ for hardcoded strings in:

  • Text widgets: Text('Hello'), Text("Welcome")
  • AppBar titles: AppBar(title: Text('Home'))
  • TextField hints: TextField(hintText: 'Enter email')
  • Button labels: ElevatedButton(child: Text('Submit'))
  • Dialog messages: AlertDialog(title: Text('Error'))
  • SnackBar messages: SnackBar(content: Text('Saved'))

Exclusions:

  • Skip files using AppLocalizations.of(context)
  • Skip comments and debug statements
  • Skip generated files (*.g.dart, *.freezed.dart)
  • Skip build/, .dart_tool/, generated/ directories

String Interpolation: Convert Dart string interpolation to ICU MessageFormat:

  • "Hello $name""Hello {name}"
  • "Total: ${cart.total}""Total: {total}"

Track:

  • Total unique strings found
  • Number of files scanned

Step 3: Generate ARB Files

Master Template (app_en.arb):

{
  "@@locale": "en",
  
  "keyName": "Original English string",
  "@keyName": {
    "description": "Context for translators",
    "placeholders": {
      "variableName": {
        "type": "String",
        "example": "John"
      }
    }
  }
}

Read the full file on GitHub · 233 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 7d ago First seen · 233 lines · 0 tokens per session scan A 52c44d42b8d7

Subscribe to this mod's changes

localize-app is a command published in the GitHub repository Kandil7/prprompts-flutter-generator (11 stars, last pushed 9mo ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 1,509 tokens. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.