docs: additional localization examples

This commit is contained in:
Gordon Hayes
2021-07-29 14:54:57 +02:00
parent 8f7163b3a0
commit 47fe22e03d
3 changed files with 33 additions and 2 deletions
@@ -76,6 +76,8 @@ class MyApp extends StatelessWidget {
],
// Add GlobalStreamChatLocalizations.delegates
localizationsDelegates: GlobalStreamChatLocalizations.delegates,
// Programatically set the locale (this is a global change)
locale: const Locale('fr'),
builder: (context, widget) => StreamChat(
client: client,
child: widget,