We decided to refactor the Flutter support for internationalization: the localizations for the widgets and material libraries have been moved into a separate package called flutter_localizations. By default Flutter will only provide US English localizations.
Apps that want to include the localizations for other languages will have to add a pubspec.yaml dependency on flutter_localizations:
dependencies:
flutter:
sdk: flutter
flutter_localizations:
sdk: flutter
They'll also need to add an import and specify localizationsDelegates and supportedLocales for MaterialApp:
import 'package:flutter_localizations/flutter_localizations.dart';
new MaterialApp(
localizationsDelegates: GlobalMaterialLocalizations.delegates,
supportedLocales: [
const Locale('en', 'US'), // English
const Locale('he', 'IL'), // Hebrew
// ... the other locales your app supports
],
// ...
)
The stocks example has been updated to use the new flutter_localizations package.
If you run into trouble updating an app for these changes you can contact me directly or via the usual channels.