dependencies

flutter_localizations

sdk

flutter

intl

^0.17.0'

To use the flutter_localizations package,
specify the localizationsDelegates and
supportedLocales on the app widget:

The delegates contain the actual localized values,
while the supportedLocales defines which locales the app supports.
The above example uses a MaterialApp,
so it has both a GlobalWidgetsLocalizations
for the base widgets localized values,
and a MaterialWidgetsLocalizations for the Material widgets localizations.
If you use WidgetsApp for your app, you don’t need the latter.
Note that these two delegates contain “default” values,
but you’ll need to provide one or more delegates
for your own app’s localizable copy,
if you want those to be localized too.

Localizations widget for you,
with the delegates you specify.
The current locale for the device is always accessible
from the