chore(ui,localization): add translations for replyToMessageLabel
Signed-off-by: xsahil03x <[email protected]>
This commit is contained in:
@@ -70,16 +70,8 @@ class MyApp extends StatelessWidget {
|
|||||||
Widget build(BuildContext context) => MaterialApp(
|
Widget build(BuildContext context) => MaterialApp(
|
||||||
theme: ThemeData.light(),
|
theme: ThemeData.light(),
|
||||||
darkTheme: ThemeData.dark(),
|
darkTheme: ThemeData.dark(),
|
||||||
supportedLocales: const [
|
supportedLocales: const [Locale('en'), Locale('hi')],
|
||||||
Locale('en'),
|
localizationsDelegates: GlobalStreamChatLocalizations.delegates,
|
||||||
Locale('hi'),
|
|
||||||
],
|
|
||||||
localizationsDelegates: const [
|
|
||||||
GlobalStreamChatLocalizations.delegate,
|
|
||||||
GlobalCupertinoLocalizations.delegate,
|
|
||||||
GlobalMaterialLocalizations.delegate,
|
|
||||||
GlobalWidgetsLocalizations.delegate,
|
|
||||||
],
|
|
||||||
builder: (context, widget) => StreamChat(
|
builder: (context, widget) => StreamChat(
|
||||||
client: client,
|
client: client,
|
||||||
child: widget,
|
child: widget,
|
||||||
|
|||||||
@@ -196,6 +196,8 @@ abstract class Translations {
|
|||||||
String get ofText;
|
String get ofText;
|
||||||
|
|
||||||
String get fileText;
|
String get fileText;
|
||||||
|
|
||||||
|
String get replyToMessageLabel;
|
||||||
}
|
}
|
||||||
|
|
||||||
class DefaultTranslations implements Translations {
|
class DefaultTranslations implements Translations {
|
||||||
@@ -548,4 +550,7 @@ class DefaultTranslations implements Translations {
|
|||||||
|
|
||||||
@override
|
@override
|
||||||
String get fileText => 'File';
|
String get fileText => 'File';
|
||||||
|
|
||||||
|
@override
|
||||||
|
String get replyToMessageLabel => 'Reply to Message';
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -357,9 +357,9 @@ class MessageInputState extends State<MessageInput> {
|
|||||||
color: _streamChatTheme.colorTheme.disabled,
|
color: _streamChatTheme.colorTheme.disabled,
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
const Text(
|
Text(
|
||||||
'Reply to Message',
|
context.translations.replyToMessageLabel,
|
||||||
style: TextStyle(fontWeight: FontWeight.bold),
|
style: const TextStyle(fontWeight: FontWeight.bold),
|
||||||
),
|
),
|
||||||
IconButton(
|
IconButton(
|
||||||
visualDensity: VisualDensity.compact,
|
visualDensity: VisualDensity.compact,
|
||||||
|
|||||||
@@ -351,4 +351,7 @@ class StreamChatLocalizationsEn extends GlobalStreamChatLocalizations {
|
|||||||
|
|
||||||
@override
|
@override
|
||||||
String get fileText => 'File';
|
String get fileText => 'File';
|
||||||
|
|
||||||
|
@override
|
||||||
|
String get replyToMessageLabel => 'Reply to Message';
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -350,4 +350,7 @@ class StreamChatLocalizationsHi extends GlobalStreamChatLocalizations {
|
|||||||
|
|
||||||
@override
|
@override
|
||||||
String get fileText => 'फ़ाइल';
|
String get fileText => 'फ़ाइल';
|
||||||
|
|
||||||
|
@override
|
||||||
|
String get replyToMessageLabel => 'संदेश का जवाब';
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user