Universal mobile & web translation for Flutter
Deliver native mobile and web apps in dozens of languages. lingvit_flutter caches translations locally on device, supports instant language switching, and works offline.
What gets translated
- iOS, Android, macOS, Windows, Linux, and Flutter Web
- Widget tree text widgets (Text('Hello'.tr()))
- Dynamic string interpolation and pluralization
- Offline SQLite / SharedPreferences translation caching
- Instant in-app language switching without restarting
- Fail-open fallback to default locale strings
- Material and Cupertino widget integration
- Automated string extraction CLI
Setup guide
Add dependency
Add lingvit_flutter to your pubspec.yaml file.
flutter pub add lingvit_flutterInitialize in main.dart
Initialize Lingvit before running your Flutter application.
void main() async { WidgetsFlutterBinding.ensureInitialized(); await Lingvit.init(projectKey: 'lng_pk_...'); runApp(const MyApp()); }Translate strings with .tr()
Call .tr() on any string literal or use LingvitText widgets.
Text('Welcome back'.tr())