Flutter Localization API (ARB)

Localization.One fully supports Flutter's native ARB format. Instead of manually editing complex JSON structures with metadata, you can manage your mobile app translations in a user-friendly interface and export them directly to your Flutter project.

Why Developers choose our Flutter API?

  • Native ARB Format: We generate valid .arb files compatible with the official flutter_localizations package and intl.
  • Automated Metadata: We automatically inject the @@locale key, ensuring your ARB files are always valid and recognized by the Flutter compiler.
  • Mobile Ready: Perfect for managing dynamic content in your Android and iOS builds from a single source.

Advanced Project Management

Scale your mobile app localization without the headache.

Unified Workflow: Manage both iOS and Android translations in one place. Export as ARB for Flutter, or separate XML/Strings if needed.

Labels & Tags: Mark strings with custom labels like "Onboarding" or "Settings" to filter exports via API.

Team Collaboration: Invite translators and copywriters. Assign granular roles (Owner, Admin, Manager, Translator).

Webhooks: Automatically trigger Codemagic or GitHub Actions builds when translations are updated.

How to Integrate

Option 1: Manual Export (UI)

Perfect for local development.

  1. Go to your Project Dashboard.
  2. Click the Download button.
  3. Select Flutter ARB from the format dropdown.
  4. Choose the language and download the .arb file.

Option 2: Automate with API (CI/CD)

Fetch the latest translations directly in your build pipeline. Pass the format=arb parameter.

bash
# Download English translations
curl "https://api.localization.one/{YOUR_API_KEY}/getTranslations?translation_language=1&format=arb" > lib/l10n/app_en.arb

# Download Spanish translations
curl "https://api.localization.one/{YOUR_API_KEY}/getTranslations?translation_language=2&format=arb" > lib/l10n/app_es.arb

Option 3: Push via Webhooks

Configure a Webhook URL in your project settings to automate the process entirely.

  • Quick Updates: Your server receives a POST request shortly after changes (usually within 5 minutes).
  • Trigger Builds: Connect webhooks to your CI/CD provider to rebuild your app automatically when content changes.

Frequently Asked Questions

Do I need to manually add @@locale?

No. Our API automatically injects the @@locale key at the top of the ARB file based on the language code you request (e.g., "@@locale": "en"), so the file is ready to use immediately.

Can I use placeholders like {name}?

Yes. Flutter ARB supports ICU syntax. You can write {name} or {count, plural, ...} in your translations, and they will be exported correctly.

Other mobile formats:

Ready to automate your Flutter localization? Create your free account today.