update docs
This commit is contained in:
@@ -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)
|
- [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)
|
- [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)
|
- [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.
|
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
|
### Add dependency
|
||||||
@@ -64,6 +64,7 @@ class MyApp extends StatelessWidget {
|
|||||||
Locale('fr'),
|
Locale('fr'),
|
||||||
Locale('it'),
|
Locale('it'),
|
||||||
Locale('es'),
|
Locale('es'),
|
||||||
|
Locale('ja'),
|
||||||
],
|
],
|
||||||
// Add GlobalStreamChatLocalizations.delegates
|
// Add GlobalStreamChatLocalizations.delegates
|
||||||
localizationsDelegates: GlobalStreamChatLocalizations.delegates,
|
localizationsDelegates: GlobalStreamChatLocalizations.delegates,
|
||||||
@@ -133,6 +134,7 @@ Here is an example of how that would look like:
|
|||||||
Locale('fr'),
|
Locale('fr'),
|
||||||
Locale('it'),
|
Locale('it'),
|
||||||
Locale('es'),
|
Locale('es'),
|
||||||
|
Locale('ja'),
|
||||||
],
|
],
|
||||||
// locales are the locales of the device
|
// locales are the locales of the device
|
||||||
// supportedLocales are the app supported locales
|
// supportedLocales are the app supported locales
|
||||||
@@ -176,5 +178,6 @@ Example:
|
|||||||
<string>fr</string>
|
<string>fr</string>
|
||||||
<string>it</string>
|
<string>it</string>
|
||||||
<string>es</string>
|
<string>es</string>
|
||||||
|
<string>ja</string>
|
||||||
</array>
|
</array>
|
||||||
```
|
```
|
||||||
|
|||||||
Reference in New Issue
Block a user