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

@@ -402,12 +402,45 @@ class AppLocalizationsIt extends AppLocalizations {
@override
String get addAttachment => 'Aggiungi allegato';
@override
String get attachmentLabel => 'Allegato';
@override
String get tools => 'Strumenti';
@override
String get voiceInput => 'Input vocale';
@override
String get voice => 'Voce';
@override
String get voiceStatusListening => 'In ascolto…';
@override
String get voiceStatusRecording => 'Registrazione…';
@override
String get voiceHoldToTalk => 'Tieni premuto per parlare';
@override
String get voiceAutoSend => 'Invio automatico';
@override
String get voiceTranscript => 'Trascrizione';
@override
String get voicePromptSpeakNow => 'Parla ora…';
@override
String get voicePromptTapStart => 'Tocca \"Avvia\" per iniziare';
@override
String get voiceActionStop => 'Stop';
@override
String get voiceActionStart => 'Avvia';
@override
String get messageInputLabel => 'Input messaggio';
@@ -423,6 +456,9 @@ class AppLocalizationsIt extends AppLocalizations {
@override
String get send => 'Invia';
@override
String get codeCopiedToClipboard => 'Codice copiato negli appunti.';
@override
String get sendMessage => 'Invia messaggio';
@@ -826,6 +862,16 @@ class AppLocalizationsIt extends AppLocalizations {
String get quickActionsDescription =>
'Scegli fino a due scorciatoie da fissare vicino al campo di input';
@override
String get chatSettings => 'Chat';
@override
String get sendOnEnter => 'Invia con Invio';
@override
String get sendOnEnterDescription =>
'Invio invia (tastiera software). Cmd/Ctrl+Invio disponibile';
@override
String get display => 'Schermo';