Showing
1 changed file
with
7 additions
and
7 deletions
@@ -371,7 +371,7 @@ Text('logged_in'.trParams({ | @@ -371,7 +371,7 @@ Text('logged_in'.trParams({ | ||
371 | 371 | ||
372 | ### Locales | 372 | ### Locales |
373 | 373 | ||
374 | -Pass parameters to `GetMaterialApp` to define the locale and translations. | 374 | +'Locales' signifie lieux. |
375 | Pour definir les traductions, passer les paramètres 'locale' et 'translations' à GetMaterialApp. | 375 | Pour definir les traductions, passer les paramètres 'locale' et 'translations' à GetMaterialApp. |
376 | 376 | ||
377 | ```dart | 377 | ```dart |
@@ -382,18 +382,18 @@ return GetMaterialApp( | @@ -382,18 +382,18 @@ return GetMaterialApp( | ||
382 | ); | 382 | ); |
383 | ``` | 383 | ``` |
384 | 384 | ||
385 | -#### Change locale | 385 | +#### Changer la locale |
386 | 386 | ||
387 | -Call `Get.updateLocale(locale)` to update the locale. Translations then automatically use the new locale. | 387 | +Appelez `Get.updateLocale (locale)` pour mettre à jour la locale. Les traductions utilisent alors automatiquement la nouvelle langue. |
388 | 388 | ||
389 | ```dart | 389 | ```dart |
390 | var locale = Locale('en', 'US'); | 390 | var locale = Locale('en', 'US'); |
391 | Get.updateLocale(locale); | 391 | Get.updateLocale(locale); |
392 | ``` | 392 | ``` |
393 | 393 | ||
394 | -#### System locale | 394 | +#### Locale du système |
395 | 395 | ||
396 | -To read the system locale, you could use `Get.deviceLocale`. | 396 | +Pour lire les paramètres régionaux ('locales') du système, vous pouvez utiliser `Get.deviceLocale`. |
397 | 397 | ||
398 | ```dart | 398 | ```dart |
399 | return GetMaterialApp( | 399 | return GetMaterialApp( |
@@ -401,9 +401,9 @@ return GetMaterialApp( | @@ -401,9 +401,9 @@ return GetMaterialApp( | ||
401 | ); | 401 | ); |
402 | ``` | 402 | ``` |
403 | 403 | ||
404 | -## Change Theme | 404 | +## Changer le Theme |
405 | 405 | ||
406 | -Please do not use any higher level widget than `GetMaterialApp` in order to update it. This can trigger duplicate keys. A lot of people are used to the prehistoric approach of creating a "ThemeProvider" widget just to change the theme of your app, and this is definitely NOT necessary with **GetX™**. | 406 | +Veuillez ne pas utiliser de widget de niveau supérieur à `GetMaterialApp` pour le mettre à jour. Cela peut créer des clés ('keys') en double. Beaucoup de gens sont habitués à l'approche préhistorique de la création d'un widget "ThemeProvider" juste pour changer le thème de votre application, et ce n'est certainement PAS nécessaire avec ** GetX ™ **. |
407 | 407 | ||
408 | You can create your custom theme and simply add it within `Get.changeTheme` without any boilerplate for that: | 408 | You can create your custom theme and simply add it within `Get.changeTheme` without any boilerplate for that: |
409 | 409 |
-
Please register or login to post a comment