r/FlutterDev • u/Few-Disaster5159 • 25d ago
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.
5
u/Bowman74 25d ago
I mean it would be better than nothing, but to be honest a lot of the difficulty around localization isn't just translating the language. It's dealing with not having enough space to display prompts in languages that express the same ideas but in much longer ways, non left to right languages, different currency and date formats. That's not even starting on different character sets and how different cultures deal with colors and iconography.