update docs

This commit is contained in:
Sacha Arbonel
2021-08-02 15:36:43 -04:00
parent 59b4f5568c
commit 8ca7dab6da
@@ -26,7 +26,7 @@ At the moment we support the following languages:
- [Italian](https://github.com/GetStream/stream-chat-flutter/blob/master/packages/stream_chat_localizations/lib/src/stream_chat_localizations_it.dart)
- [French](https://github.com/GetStream/stream-chat-flutter/blob/master/packages/stream_chat_localizations/lib/src/stream_chat_localizations_fr.dart)
- [Spanish](https://github.com/GetStream/stream-chat-flutter/blob/master/packages/stream_chat_localizations/lib/src/stream_chat_localizations_es.dart)
- [Japanese](https://github.com/GetStream/stream-chat-flutter/blob/master/packages/stream_chat_localizations/lib/src/stream_chat_localizations_ja.dart)
More languages will be added in the future. Feel free to [contribute](https://github.com/GetStream/stream-chat-flutter/blob/master/CONTRIBUTING.md) to add more languages.
### Add dependency
@@ -64,6 +64,7 @@ class MyApp extends StatelessWidget {
Locale('fr'),
Locale('it'),
Locale('es'),
Locale('ja'),
],
// Add GlobalStreamChatLocalizations.delegates
localizationsDelegates: GlobalStreamChatLocalizations.delegates,
@@ -133,6 +134,7 @@ Here is an example of how that would look like:
Locale('fr'),
Locale('it'),
Locale('es'),
Locale('ja'),
],
// locales are the locales of the device
// supportedLocales are the app supported locales
@@ -176,5 +178,6 @@ Example:
<string>fr</string>
<string>it</string>
<string>es</string>
<string>ja</string>
</array>
```