refactor: enhance localization support in chat and voice input features
- Integrated localization for various dialog messages and UI elements in the chat and voice input components. - Updated the confirmation dialog to utilize localized strings for delete messages, improving user experience across different languages. - Enhanced voice input sheet to reflect localized text for status updates, action buttons, and prompts, ensuring consistency in user interactions. - Improved the file attachment widget to display the attachment label in a localized manner, enhancing accessibility for users in different regions. - Streamlined localization management by centralizing string retrieval, promoting maintainability and clarity in the codebase.
This commit is contained in:
@@ -460,11 +460,12 @@ class AppCustomizationPage extends ConsumerWidget {
|
||||
AppSettings settings,
|
||||
) {
|
||||
final theme = context.conduitTheme;
|
||||
final l10n = AppLocalizations.of(context)!;
|
||||
return Column(
|
||||
crossAxisAlignment: CrossAxisAlignment.start,
|
||||
children: [
|
||||
Text(
|
||||
'Chat',
|
||||
l10n.chatSettings,
|
||||
style:
|
||||
theme.headingSmall?.copyWith(color: theme.textPrimary) ??
|
||||
TextStyle(color: theme.textPrimary, fontSize: 18),
|
||||
@@ -476,9 +477,8 @@ class AppCustomizationPage extends ConsumerWidget {
|
||||
Platform.isIOS ? CupertinoIcons.paperplane : Icons.keyboard_return,
|
||||
color: theme.buttonPrimary,
|
||||
),
|
||||
title: 'Send on Enter',
|
||||
subtitle:
|
||||
'Enter sends (soft keyboard). Cmd/Ctrl+Enter also available',
|
||||
title: l10n.sendOnEnter,
|
||||
subtitle: l10n.sendOnEnterDescription,
|
||||
trailing: Switch.adaptive(
|
||||
value: settings.sendOnEnter,
|
||||
onChanged: (value) =>
|
||||
|
||||
Reference in New Issue
Block a user