Merge branch 'develop' into v4
This commit is contained in:
@@ -1,3 +1,7 @@
|
||||
## Upcoming
|
||||
|
||||
* Added translations for viewLibrary.
|
||||
|
||||
## 3.0.0-beta.1
|
||||
|
||||
* Updated `stream_chat_flutter` dependency to [`4.0.0-beta.1`](https://pub.dev/packages/stream_chat_flutter/changelog).
|
||||
|
||||
@@ -403,6 +403,9 @@ class NnStreamChatLocalizations extends GlobalStreamChatLocalizations {
|
||||
|
||||
@override
|
||||
String get linkDisabledError => 'Links are disabled';
|
||||
|
||||
@override
|
||||
String get viewLibrary => 'View library';
|
||||
}
|
||||
|
||||
void main() async {
|
||||
@@ -500,7 +503,8 @@ class MyApp extends StatelessWidget {
|
||||
|
||||
/// A list of messages sent in the current channel.
|
||||
///
|
||||
/// This is implemented using [MessageListView], a widget that provides query
|
||||
/// This is implemented using [StreamMessageListView],
|
||||
/// a widget that provides query
|
||||
/// functionalities fetching the messages from the api and showing them in a
|
||||
/// listView.
|
||||
class ChannelPage extends StatelessWidget {
|
||||
@@ -511,13 +515,13 @@ class ChannelPage extends StatelessWidget {
|
||||
|
||||
@override
|
||||
Widget build(BuildContext context) => Scaffold(
|
||||
appBar: const ChannelHeader(),
|
||||
appBar: const StreamChannelHeader(),
|
||||
body: Column(
|
||||
children: const <Widget>[
|
||||
Expanded(
|
||||
child: MessageListView(),
|
||||
child: StreamMessageListView(),
|
||||
),
|
||||
MessageInput(),
|
||||
StreamMessageInput(),
|
||||
],
|
||||
),
|
||||
);
|
||||
|
||||
@@ -94,7 +94,8 @@ class MyApp extends StatelessWidget {
|
||||
|
||||
/// A list of messages sent in the current channel.
|
||||
///
|
||||
/// This is implemented using [MessageListView], a widget that provides query
|
||||
/// This is implemented using [StreamMessageListView],
|
||||
/// a widget that provides query
|
||||
/// functionalities fetching the messages from the api and showing them in a
|
||||
/// listView.
|
||||
class ChannelPage extends StatelessWidget {
|
||||
@@ -105,13 +106,13 @@ class ChannelPage extends StatelessWidget {
|
||||
|
||||
@override
|
||||
Widget build(BuildContext context) => Scaffold(
|
||||
appBar: const ChannelHeader(),
|
||||
appBar: const StreamChannelHeader(),
|
||||
body: Column(
|
||||
children: const <Widget>[
|
||||
Expanded(
|
||||
child: MessageListView(),
|
||||
child: StreamMessageListView(),
|
||||
),
|
||||
MessageInput(),
|
||||
StreamMessageInput(),
|
||||
],
|
||||
),
|
||||
);
|
||||
|
||||
@@ -121,7 +121,8 @@ class MyApp extends StatelessWidget {
|
||||
|
||||
/// A list of messages sent in the current channel.
|
||||
///
|
||||
/// This is implemented using [MessageListView], a widget that provides query
|
||||
/// This is implemented using [StreamMessageListView],
|
||||
/// a widget that provides query
|
||||
/// functionalities fetching the messages from the api and showing them in a
|
||||
/// listView.
|
||||
class ChannelPage extends StatelessWidget {
|
||||
@@ -132,13 +133,13 @@ class ChannelPage extends StatelessWidget {
|
||||
|
||||
@override
|
||||
Widget build(BuildContext context) => Scaffold(
|
||||
appBar: const ChannelHeader(),
|
||||
appBar: const StreamChannelHeader(),
|
||||
body: Column(
|
||||
children: const <Widget>[
|
||||
Expanded(
|
||||
child: MessageListView(),
|
||||
child: StreamMessageListView(),
|
||||
),
|
||||
MessageInput(),
|
||||
StreamMessageInput(),
|
||||
],
|
||||
),
|
||||
);
|
||||
|
||||
@@ -74,8 +74,9 @@ GlobalStreamChatLocalizations? getStreamChatTranslation(Locale locale) {
|
||||
return const StreamChatLocalizationsKo();
|
||||
case 'pt':
|
||||
return const StreamChatLocalizationsPt();
|
||||
default:
|
||||
return null;
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
/// Implementation of localized strings for the stream chat widgets
|
||||
|
||||
@@ -379,4 +379,7 @@ class StreamChatLocalizationsEn extends GlobalStreamChatLocalizations {
|
||||
|
||||
@override
|
||||
String get linkDisabledError => 'Links are disabled';
|
||||
|
||||
@override
|
||||
String get viewLibrary => 'View library';
|
||||
}
|
||||
|
||||
@@ -376,6 +376,9 @@ class StreamChatLocalizationsEs extends GlobalStreamChatLocalizations {
|
||||
No es posible añadir más de $limit archivos adjuntos
|
||||
''';
|
||||
|
||||
@override
|
||||
String get viewLibrary => 'Ver Librería';
|
||||
|
||||
@override
|
||||
String get slowModeOnLabel => 'Modo lento activado';
|
||||
|
||||
|
||||
@@ -375,6 +375,9 @@ class StreamChatLocalizationsFr extends GlobalStreamChatLocalizations {
|
||||
Limite de pièces jointes dépassée : il n'est pas possible d'ajouter plus de $limit pièces jointes
|
||||
''';
|
||||
|
||||
@override
|
||||
String get viewLibrary => 'Voir la bibliothèque';
|
||||
|
||||
@override
|
||||
String get slowModeOnLabel => 'Mode lent activé';
|
||||
|
||||
|
||||
@@ -369,6 +369,9 @@ class StreamChatLocalizationsHi extends GlobalStreamChatLocalizations {
|
||||
अटैचमेंट लिमिट: $limit अटैचमेंट से अधिक जोड़ना संभव नहीं है
|
||||
''';
|
||||
|
||||
@override
|
||||
String get viewLibrary => 'पुस्तकालय देखिये';
|
||||
|
||||
@override
|
||||
String get slowModeOnLabel => 'स्लो मोड चालू';
|
||||
|
||||
|
||||
@@ -372,6 +372,9 @@ Il file è troppo grande per essere caricato. Il limite è di $limitInMB MB.''';
|
||||
Attenzione: il limite massimo di $limit file è stato superato.
|
||||
''';
|
||||
|
||||
@override
|
||||
String get viewLibrary => 'Vedi la biblioteca';
|
||||
|
||||
@override
|
||||
String get slowModeOnLabel => 'Slowmode attiva';
|
||||
|
||||
|
||||
@@ -353,6 +353,9 @@ class StreamChatLocalizationsJa extends GlobalStreamChatLocalizations {
|
||||
@override
|
||||
String get slowModeOnLabel => 'スローモードオン';
|
||||
|
||||
@override
|
||||
String get viewLibrary => 'ライブラリを表示';
|
||||
|
||||
@override
|
||||
String attachmentLimitExceedError(int limit) => '''
|
||||
添付ファイルの制限を超えました:$limit個のファイル以上を添付することはできません
|
||||
|
||||
@@ -354,6 +354,10 @@ class StreamChatLocalizationsKo extends GlobalStreamChatLocalizations {
|
||||
@override
|
||||
String get slowModeOnLabel => '슬로모드 켜짐';
|
||||
|
||||
@override
|
||||
@override
|
||||
String get viewLibrary => '라이브러리 보기';
|
||||
|
||||
@override
|
||||
String attachmentLimitExceedError(int limit) =>
|
||||
'첨부 파일 제한 초과: $limit 이상의 첨부 파일을 추가할 수 없습니다';
|
||||
|
||||
@@ -382,4 +382,7 @@ Não é possível adicionar mais de $limit arquivos de uma vez
|
||||
@override
|
||||
String get sendMessagePermissionError =>
|
||||
'Você não tem permissão para enviar mensagens';
|
||||
|
||||
@override
|
||||
String get viewLibrary => 'Ver biblioteca';
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user