If you want to upload it to servers already you can just run after:
Copy
dart run locale_sync upload
This will send your translations to the repository specified in your config file, upserting languages and strings from your file.On your app widget you need to add LocaleSync.delegate to that list:
lib/app.dart
Copy
return MaterialApp( supportedLocales: const [ Locale("pt"), Locale("en"), ], localizationsDelegates: [ // Add this line LocaleSync.delegate GlobalMaterialLocalizations.delegate, GlobalWidgetsLocalizations.delegate, ], );
If you want to use our over-the-air strings feature you just need to call setup method from LocaleSync on your main.dart, or whatever entry point you’re using: