r/FlutterDev • u/Few-Disaster5159 • Jul 24 '26
Discussion Thinking about building lazy, real-time localization for Flutter — want a gut check before I sink more time into it
The idea: instead of translating your app into a fixed list of languages upfront, translation happens lazily. When a user opens the app with a locale you don't have yet, it gets translated in the background (AI-powered) and shown to them — no rebuild, no release. Locales are cached both server-side and on the device, keyed by the user's device language.
To make this practical, I'm also building a Flutter package with a CLI that refactors your codebase for localization, built on top of easy_localization. It scans your project and transforms widgets. For example, Text("Welcome") becomes Text(context.tr("home_screen.welcome")) and auto-generates a JSON locale file from your default language strings.
Not selling anything, just trying to figure out if this is worth building further.
2
u/DamagingDoritos Jul 24 '26
AI is not there yet for perfect localization. Maybe for direct translations, but not for natural language. You still basically need a fluent speaker to catch nuance that doesn’t translate 1 to 1 between languages
19
u/sauloandrioli Jul 24 '26
Yeah, lets burn tokens and make an AI model work for something that is predefined.
1
u/merokotos Jul 24 '26
The biggest problem is it's not idempotent.
1
u/cent-met-een-vin Jul 24 '26
Translation engines are not new, if it was a good idea it would have already been build.
2
u/rykh72 Jul 24 '26
It's not viable.
With a script + LLM a new language is already done in less than 5 min, with context ...
The problem is the localisation of the store, if your screenshot are only in English, the Turkish guy will hesitate to download your app. Everything need to be translated in advance.
6
u/[deleted] Jul 24 '26
[removed] — view removed comment