PackageTrack
Sign in Get early access

auto_l10n

Automatic Flutter app translation with zero code changes. One line in main.dart. Supports DeepL, MyMemory, Lingva, Google Translate, and custom translators.

0.3.2 createev/auto_l10n

What this package is like to depend on

Last release 6 months ago

23 Feb 2026

Too new to tell

only 1 release windows

Nearly every release is documented

notes for 5 of 5 stable releases

Nothing withdrawn

no release was ever pulled

6 months old

5 releases · first in 2026

5 releases in the last 12 months

see the full history below

Release timeline

5 releases · Feb 2026 to Feb 2026
Release Pre-release

Releases

latest 5
  1. 0.3.2 23 Feb 2026
    Release notes
    • Fixed remaining pub analysis warning in CLI AST visitor by suppressing deprecated analyzer member usage in a lower-bound compatible way.
    Open source →
  2. 0.3.1 23 Feb 2026
    Release notes
    • Fixed pub points loss in static analysis: updated bin/generate.dart to satisfy curly_braces_in_flow_control_structures (no behavioral changes).
    • Fixed pub dependency score warning by widening analyzer constraint to >=7.7.1 <11.0.0.
    Open source →
  3. 0.3.0 23 Feb 2026
    Release notes
    • Added layoutPolicy to autoL10n() / AutoL10nBinding.ensureInitialized():
      • AutoL10nLayoutPolicy.off
      • AutoL10nLayoutPolicy.safeFallback
      • AutoL10nLayoutPolicy.safeEllipsisCurrent
    • Added layout-safe runtime handling for tight horizontal Row/Flex labels:
      • optional fallback to source text
      • optional translated ellipsis trimming (...) in conservative mode
    • Runtime bootstrap made deterministic: SharedPreferences cache -> ARB preload -> API fallback.
    • ARB-only mode no longer uses NoOpTranslator in runtime pipeline; API queue/flush is skipped when no translator is configured.
    • Unified cache key namespace by language: auto_l10n_<lang> (instead of translator-scoped keys).
    • Runtime cache no longer stores unchanged entries (translated == original).
    • Runtime translation patching now also handles Text.textSpan (in addition to Text.data and RichText).
    • Runtime lookup improved for case/whitespace mismatches (case-insensitive matching with preserved case pattern and trimmed lookup with preserved outer whitespace).
    • Retry behavior for failed API batches: up to 3 retry attempts, then stop until new input arrives.
    • DeepL XML mode fixes: safe XML escaping around placeholders and entity decode after translation.
    • CLI extraction upgraded to AST-first scanning and expanded to capture real-world UI patterns.
    • CLI now captures fallback literals in mixed expressions (e.g. ternary with one non-literal branch).
    • CLI now captures string arguments from mixed-signature calls (e.g. string + enum arguments in one call).
    • CLI now resolves const references (including qualified static const values) when extracting strings.
    • CLI keys are normalized with trim by default (cleaner ARB keys).
    • README updated with layout policy documentation and usage examples.
    Open source →
  4. 0.2.0 20 Feb 2026
    Release notes

    fix: remove env.dart import from default example scenario

    Open source →
    Release notes
    • Generate CLI (dart run auto_l10n): from-code (scan Text('...') / Text("...")) or from-arb; optional --service (deepl, google, mymemory, lingva, mock) with --api-key for deepl/google. Output to assets/auto_l10n by default.
    • Pre-generated ARB only: autoL10n() with no provider loads from translationsPath (default assets/auto_l10n); no API key required.
    • Pre-generated + API: autoL10n(provider: ..., apiKey: ...) loads ARB first, translates missing strings via API.
    • API only: autoL10n(provider: ..., loadPregenerated: false).
    • autoL10n() top-level helper; translationsPath and loadPregenerated parameters on binding.
    • TranslationCache: optional preloaded map; addPreloaded() for async ARB load and persist.
    • NoOpTranslator when only pre-generated ARB is used.
    • RichText widgets are now patched and restored: translated text is shown in RichText / nested TextSpans, not only in Text.
    • Example app: user-generated content (text field → translated output), locale picker (device locale on launch with fallback to en), in-app copy about API key vs free providers, pre-generated ARB.
    Open source →
  5. 0.1.0 20 Feb 2026
    Release notes
    • Initial release.
    • Runtime translation for Flutter Text and RichText via AutoL10nBinding.
    • Built-in providers: DeepL, MyMemory, Lingva, Google Translate, Mock.
    • Optional targetLocale (defaults to device locale).
    • Custom translators via AbstractTranslator.
    • Per-language cache in memory and SharedPreferences.
    • Static ARB generation: dart run auto_l10n:generate.
    Open source →

Every package, every release, already written down.

The archive is open and free. Watching your own project is what we are building next.

Browse the archive