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:
cogwheel0
2025-10-05 00:05:58 +05:30
parent 072453d588
commit 8629e1e039
14 changed files with 455 additions and 66 deletions

View File

@@ -405,12 +405,45 @@ class AppLocalizationsDe extends AppLocalizations {
@override
String get addAttachment => 'Anhang hinzufügen';
@override
String get attachmentLabel => 'Anhang';
@override
String get tools => 'Werkzeuge';
@override
String get voiceInput => 'Spracheingabe';
@override
String get voice => 'Sprache';
@override
String get voiceStatusListening => 'Hört zu…';
@override
String get voiceStatusRecording => 'Nimmt auf…';
@override
String get voiceHoldToTalk => 'Zum Sprechen halten';
@override
String get voiceAutoSend => 'Automatisch senden';
@override
String get voiceTranscript => 'Transkript';
@override
String get voicePromptSpeakNow => 'Jetzt sprechen…';
@override
String get voicePromptTapStart => 'Tippe auf \"Starten\", um zu beginnen';
@override
String get voiceActionStop => 'Stopp';
@override
String get voiceActionStart => 'Starten';
@override
String get messageInputLabel => 'Nachrichteneingabe';
@@ -426,6 +459,9 @@ class AppLocalizationsDe extends AppLocalizations {
@override
String get send => 'Senden';
@override
String get codeCopiedToClipboard => 'Code in die Zwischenablage kopiert.';
@override
String get sendMessage => 'Nachricht senden';
@@ -829,6 +865,16 @@ class AppLocalizationsDe extends AppLocalizations {
String get quickActionsDescription =>
'Wähle bis zu zwei Schnellzugriffe, die neben dem Eingabefeld angepinnt werden';
@override
String get chatSettings => 'Chat';
@override
String get sendOnEnter => 'Mit Enter senden';
@override
String get sendOnEnterDescription =>
'Enter sendet (Soft-Tastatur). Cmd/Ctrl+Enter ebenfalls verfügbar';
@override
String get display => 'Anzeige';