Showing
1 changed file
with
4 additions
and
3 deletions
@@ -372,12 +372,13 @@ Text('logged_in'.trParams({ | @@ -372,12 +372,13 @@ Text('logged_in'.trParams({ | ||
372 | ### Locales | 372 | ### Locales |
373 | 373 | ||
374 | Pass parameters to `GetMaterialApp` to define the locale and translations. | 374 | Pass parameters to `GetMaterialApp` to define the locale and translations. |
375 | +Pour definir les traductions, passer les paramètres 'locale' et 'translations' à GetMaterialApp. | ||
375 | 376 | ||
376 | ```dart | 377 | ```dart |
377 | return GetMaterialApp( | 378 | return GetMaterialApp( |
378 | - translations: Messages(), // your translations | ||
379 | - locale: Locale('en', 'US'), // translations will be displayed in that locale | ||
380 | - fallbackLocale: Locale('en', 'UK'), // specify the fallback locale in case an invalid locale is selected. | 379 | + translations: Messages(), // Vos traductions |
380 | + locale: Locale('en', 'US'), // Les traductions seront faites dans cette 'locale' (langue) | ||
381 | + fallbackLocale: Locale('en', 'UK'), // definit le 'language de secours' au cas oú un language invalide est sélectionné. | ||
381 | ); | 382 | ); |
382 | ``` | 383 | ``` |
383 | 384 |
-
Please register or login to post a comment