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