update readme and example
This commit is contained in:
@@ -35,6 +35,8 @@ 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)
|
||||||
|
- [Korean](https://github.com/GetStream/stream-chat-flutter/blob/master/packages/stream_chat_localizations/lib/src/stream_chat_localizations_ko.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.
|
||||||
|
|
||||||
@@ -70,6 +72,8 @@ class MyApp extends StatelessWidget {
|
|||||||
Locale('fr'),
|
Locale('fr'),
|
||||||
Locale('it'),
|
Locale('it'),
|
||||||
Locale('es'),
|
Locale('es'),
|
||||||
|
Locale('ja'),
|
||||||
|
Locale('ko'),
|
||||||
],
|
],
|
||||||
// Add GlobalStreamChatLocalizations.delegates
|
// Add GlobalStreamChatLocalizations.delegates
|
||||||
localizationsDelegates: GlobalStreamChatLocalizations.delegates,
|
localizationsDelegates: GlobalStreamChatLocalizations.delegates,
|
||||||
@@ -113,6 +117,8 @@ Example:
|
|||||||
<string>fr</string>
|
<string>fr</string>
|
||||||
<string>it</string>
|
<string>it</string>
|
||||||
<string>es</string>
|
<string>es</string>
|
||||||
|
<string>ja</string>
|
||||||
|
<string>ko</string>
|
||||||
</array>
|
</array>
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|||||||
@@ -456,6 +456,9 @@ class MyApp extends StatelessWidget {
|
|||||||
Locale('hi'),
|
Locale('hi'),
|
||||||
Locale('fr'),
|
Locale('fr'),
|
||||||
Locale('it'),
|
Locale('it'),
|
||||||
|
Locale('es'),
|
||||||
|
Locale('ja'),
|
||||||
|
Locale('ko'),
|
||||||
// Add support for additional 'nn' locale
|
// Add support for additional 'nn' locale
|
||||||
Locale('nn'),
|
Locale('nn'),
|
||||||
],
|
],
|
||||||
|
|||||||
@@ -73,6 +73,9 @@ class MyApp extends StatelessWidget {
|
|||||||
Locale('hi'),
|
Locale('hi'),
|
||||||
Locale('fr'),
|
Locale('fr'),
|
||||||
Locale('it'),
|
Locale('it'),
|
||||||
|
Locale('es'),
|
||||||
|
Locale('ja'),
|
||||||
|
Locale('ko'),
|
||||||
],
|
],
|
||||||
// Add GlobalStreamChatLocalizations.delegates
|
// Add GlobalStreamChatLocalizations.delegates
|
||||||
localizationsDelegates: GlobalStreamChatLocalizations.delegates,
|
localizationsDelegates: GlobalStreamChatLocalizations.delegates,
|
||||||
|
|||||||
@@ -98,6 +98,9 @@ class MyApp extends StatelessWidget {
|
|||||||
Locale('hi'),
|
Locale('hi'),
|
||||||
Locale('fr'),
|
Locale('fr'),
|
||||||
Locale('it'),
|
Locale('it'),
|
||||||
|
Locale('es'),
|
||||||
|
Locale('ja'),
|
||||||
|
Locale('ko'),
|
||||||
],
|
],
|
||||||
// Add overridden "CustomStreamChatLocalizationsEn.delegate" along with
|
// Add overridden "CustomStreamChatLocalizationsEn.delegate" along with
|
||||||
// "GlobalStreamChatLocalizations.delegates"
|
// "GlobalStreamChatLocalizations.delegates"
|
||||||
|
|||||||
Reference in New Issue
Block a user