From 7a4d0dbf46981e8eeac4db71109cf1cd2ff5ded8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Th=C3=A9o=20Poizat?= Date: Mon, 26 Jan 2026 09:41:44 +0100 Subject: [PATCH] Add missing languages in Scribe To fit languages supported in tmail settings --- lib/l10n/intl_messages.arb | 2 +- scribe/lib/scribe/ai/l10n/intl_ar.arb | 129 ++++++++++++++++++ scribe/lib/scribe/ai/l10n/intl_de.arb | 129 ++++++++++++++++++ scribe/lib/scribe/ai/l10n/intl_it.arb | 129 ++++++++++++++++++ scribe/lib/scribe/ai/l10n/intl_messages.arb | 2 +- .../localizations/scribe_localizations.dart | 2 +- 6 files changed, 390 insertions(+), 3 deletions(-) create mode 100644 scribe/lib/scribe/ai/l10n/intl_ar.arb create mode 100644 scribe/lib/scribe/ai/l10n/intl_de.arb create mode 100644 scribe/lib/scribe/ai/l10n/intl_it.arb diff --git a/lib/l10n/intl_messages.arb b/lib/l10n/intl_messages.arb index 78b8017da..e7ebcb0b2 100644 --- a/lib/l10n/intl_messages.arb +++ b/lib/l10n/intl_messages.arb @@ -1,5 +1,5 @@ { - "@@last_modified": "2026-01-20T09:45:15.272706", + "@@last_modified": "2026-01-26T09:26:54.654131", "initializing_data": "Initializing data...", "@initializing_data": { "type": "text", diff --git a/scribe/lib/scribe/ai/l10n/intl_ar.arb b/scribe/lib/scribe/ai/l10n/intl_ar.arb new file mode 100644 index 000000000..480afda86 --- /dev/null +++ b/scribe/lib/scribe/ai/l10n/intl_ar.arb @@ -0,0 +1,129 @@ +{ + "@@last_modified": "2026-01-26T08:00:00.000000", + "categoryCorrectGrammar": "تصحيح", + "@categoryCorrectGrammar": { + "type": "text", + "placeholders_order": [], + "placeholders": {} + }, + "categoryImprove": "تحسين", + "@categoryImprove": { + "type": "text", + "placeholders_order": [], + "placeholders": {} + }, + "categoryChangeTone": "تغيير النبرة", + "@categoryChangeTone": { + "type": "text", + "placeholders_order": [], + "placeholders": {} + }, + "categoryTranslate": "ترجمة", + "@categoryTranslate": { + "type": "text", + "placeholders_order": [], + "placeholders": {} + }, + "actionMakeShorter": "اجعله أقصر", + "@actionMakeShorter": { + "type": "text", + "placeholders_order": [], + "placeholders": {} + }, + "actionExpandContext": "توسيع السياق", + "@actionExpandContext": { + "type": "text", + "placeholders_order": [], + "placeholders": {} + }, + "actionEmojify": "إضافة الرموز التعبيرية", + "@actionEmojify": { + "type": "text", + "placeholders_order": [], + "placeholders": {} + }, + "actionTransformToBullets": "تحويل إلى نقاط", + "@actionTransformToBullets": { + "type": "text", + "placeholders_order": [], + "placeholders": {} + }, + "actionMoreProfessional": "أكثر احترافية", + "@actionMoreProfessional": { + "type": "text", + "placeholders_order": [], + "placeholders": {} + }, + "actionMoreCasual": "أكثر عفوية", + "@actionMoreCasual": { + "type": "text", + "placeholders_order": [], + "placeholders": {} + }, + "actionMorePolite": "أكثر تهذيباً", + "@actionMorePolite": { + "type": "text", + "placeholders_order": [], + "placeholders": {} + }, + "languageFrench": "الفرنسية", + "@languageFrench": { + "type": "text", + "placeholders_order": [], + "placeholders": {} + }, + "languageEnglish": "الإنجليزية", + "@languageEnglish": { + "type": "text", + "placeholders_order": [], + "placeholders": {} + }, + "languageRussian": "الروسية", + "@languageRussian": { + "type": "text", + "placeholders_order": [], + "placeholders": {} + }, + "languageVietnamese": "الفيتنامية", + "@languageVietnamese": { + "type": "text", + "placeholders_order": [], + "placeholders": {} + }, + "customPromptAction": "ساعدني في الكتابة", + "@customPromptAction": { + "type": "text", + "placeholders_order": [], + "placeholders": {} + }, + "failedToGenerate": "فشل في إنشاء استجابة الذكاء الاصطناعي", + "@failedToGenerate": { + "type": "text", + "placeholders_order": [], + "placeholders": {} + }, + "generatingResponse": "إنشاء الاستجابة", + "@generatingResponse": { + "type": "text", + "placeholders_order": [], + "placeholders": {} + }, + "insert": "إدراج", + "@insert": { + "type": "text", + "placeholders_order": [], + "placeholders": {} + }, + "replace": "استبدال", + "@replace": { + "type": "text", + "placeholders_order": [], + "placeholders": {} + }, + "aiAssistant": "مساعد الذكاء الاصطناعي", + "@aiAssistant": { + "type": "text", + "placeholders_order": [], + "placeholders": {} + } +} diff --git a/scribe/lib/scribe/ai/l10n/intl_de.arb b/scribe/lib/scribe/ai/l10n/intl_de.arb new file mode 100644 index 000000000..60728c4b4 --- /dev/null +++ b/scribe/lib/scribe/ai/l10n/intl_de.arb @@ -0,0 +1,129 @@ +{ + "@@last_modified": "2026-01-26T07:59:00.000000", + "categoryCorrectGrammar": "Korrigieren", + "@categoryCorrectGrammar": { + "type": "text", + "placeholders_order": [], + "placeholders": {} + }, + "categoryImprove": "Verbessern", + "@categoryImprove": { + "type": "text", + "placeholders_order": [], + "placeholders": {} + }, + "categoryChangeTone": "Ton ändern", + "@categoryChangeTone": { + "type": "text", + "placeholders_order": [], + "placeholders": {} + }, + "categoryTranslate": "Übersetzen", + "@categoryTranslate": { + "type": "text", + "placeholders_order": [], + "placeholders": {} + }, + "actionMakeShorter": "Kürzer machen", + "@actionMakeShorter": { + "type": "text", + "placeholders_order": [], + "placeholders": {} + }, + "actionExpandContext": "Kontext erweitern", + "@actionExpandContext": { + "type": "text", + "placeholders_order": [], + "placeholders": {} + }, + "actionEmojify": "Emojis hinzufügen", + "@actionEmojify": { + "type": "text", + "placeholders_order": [], + "placeholders": {} + }, + "actionTransformToBullets": "In Aufzählungspunkte umwandeln", + "@actionTransformToBullets": { + "type": "text", + "placeholders_order": [], + "placeholders": {} + }, + "actionMoreProfessional": "Professioneller", + "@actionMoreProfessional": { + "type": "text", + "placeholders_order": [], + "placeholders": {} + }, + "actionMoreCasual": "Lockerer", + "@actionMoreCasual": { + "type": "text", + "placeholders_order": [], + "placeholders": {} + }, + "actionMorePolite": "Höflicher", + "@actionMorePolite": { + "type": "text", + "placeholders_order": [], + "placeholders": {} + }, + "languageFrench": "Französisch", + "@languageFrench": { + "type": "text", + "placeholders_order": [], + "placeholders": {} + }, + "languageEnglish": "Englisch", + "@languageEnglish": { + "type": "text", + "placeholders_order": [], + "placeholders": {} + }, + "languageRussian": "Russisch", + "@languageRussian": { + "type": "text", + "placeholders_order": [], + "placeholders": {} + }, + "languageVietnamese": "Vietnamesisch", + "@languageVietnamese": { + "type": "text", + "placeholders_order": [], + "placeholders": {} + }, + "customPromptAction": "Hilf mir beim Schreiben", + "@customPromptAction": { + "type": "text", + "placeholders_order": [], + "placeholders": {} + }, + "failedToGenerate": "KI-Antwort konnte nicht generiert werden", + "@failedToGenerate": { + "type": "text", + "placeholders_order": [], + "placeholders": {} + }, + "generatingResponse": "Antwort wird generiert", + "@generatingResponse": { + "type": "text", + "placeholders_order": [], + "placeholders": {} + }, + "insert": "Einfügen", + "@insert": { + "type": "text", + "placeholders_order": [], + "placeholders": {} + }, + "replace": "Ersetzen", + "@replace": { + "type": "text", + "placeholders_order": [], + "placeholders": {} + }, + "aiAssistant": "KI-Assistent", + "@aiAssistant": { + "type": "text", + "placeholders_order": [], + "placeholders": {} + } +} diff --git a/scribe/lib/scribe/ai/l10n/intl_it.arb b/scribe/lib/scribe/ai/l10n/intl_it.arb new file mode 100644 index 000000000..8586cc45c --- /dev/null +++ b/scribe/lib/scribe/ai/l10n/intl_it.arb @@ -0,0 +1,129 @@ +{ + "@@last_modified": "2026-01-26T08:00:00.000000", + "categoryCorrectGrammar": "Correggi", + "@categoryCorrectGrammar": { + "type": "text", + "placeholders_order": [], + "placeholders": {} + }, + "categoryImprove": "Migliora", + "@categoryImprove": { + "type": "text", + "placeholders_order": [], + "placeholders": {} + }, + "categoryChangeTone": "Cambia tono", + "@categoryChangeTone": { + "type": "text", + "placeholders_order": [], + "placeholders": {} + }, + "categoryTranslate": "Traduci", + "@categoryTranslate": { + "type": "text", + "placeholders_order": [], + "placeholders": {} + }, + "actionMakeShorter": "Rendilo più breve", + "@actionMakeShorter": { + "type": "text", + "placeholders_order": [], + "placeholders": {} + }, + "actionExpandContext": "Espandi contesto", + "@actionExpandContext": { + "type": "text", + "placeholders_order": [], + "placeholders": {} + }, + "actionEmojify": "Aggiungi emoji", + "@actionEmojify": { + "type": "text", + "placeholders_order": [], + "placeholders": {} + }, + "actionTransformToBullets": "Trasforma in elenco puntato", + "@actionTransformToBullets": { + "type": "text", + "placeholders_order": [], + "placeholders": {} + }, + "actionMoreProfessional": "Più professionale", + "@actionMoreProfessional": { + "type": "text", + "placeholders_order": [], + "placeholders": {} + }, + "actionMoreCasual": "Più informale", + "@actionMoreCasual": { + "type": "text", + "placeholders_order": [], + "placeholders": {} + }, + "actionMorePolite": "Più cortese", + "@actionMorePolite": { + "type": "text", + "placeholders_order": [], + "placeholders": {} + }, + "languageFrench": "Francese", + "@languageFrench": { + "type": "text", + "placeholders_order": [], + "placeholders": {} + }, + "languageEnglish": "Inglese", + "@languageEnglish": { + "type": "text", + "placeholders_order": [], + "placeholders": {} + }, + "languageRussian": "Russo", + "@languageRussian": { + "type": "text", + "placeholders_order": [], + "placeholders": {} + }, + "languageVietnamese": "Vietnamita", + "@languageVietnamese": { + "type": "text", + "placeholders_order": [], + "placeholders": {} + }, + "customPromptAction": "Aiutami a scrivere", + "@customPromptAction": { + "type": "text", + "placeholders_order": [], + "placeholders": {} + }, + "failedToGenerate": "Generazione della risposta IA non riuscita", + "@failedToGenerate": { + "type": "text", + "placeholders_order": [], + "placeholders": {} + }, + "generatingResponse": "Generazione della risposta", + "@generatingResponse": { + "type": "text", + "placeholders_order": [], + "placeholders": {} + }, + "insert": "Inserisci", + "@insert": { + "type": "text", + "placeholders_order": [], + "placeholders": {} + }, + "replace": "Sostituisci", + "@replace": { + "type": "text", + "placeholders_order": [], + "placeholders": {} + }, + "aiAssistant": "Assistente IA", + "@aiAssistant": { + "type": "text", + "placeholders_order": [], + "placeholders": {} + } +} diff --git a/scribe/lib/scribe/ai/l10n/intl_messages.arb b/scribe/lib/scribe/ai/l10n/intl_messages.arb index 422b23841..075499f20 100644 --- a/scribe/lib/scribe/ai/l10n/intl_messages.arb +++ b/scribe/lib/scribe/ai/l10n/intl_messages.arb @@ -1,5 +1,5 @@ { - "@@last_modified": "2026-01-20T08:05:38.377619", + "@@last_modified": "2026-01-26T09:26:56.495094", "categoryCorrectGrammar": "Correct", "@categoryCorrectGrammar": { "type": "text", diff --git a/scribe/lib/scribe/ai/localizations/scribe_localizations.dart b/scribe/lib/scribe/ai/localizations/scribe_localizations.dart index c57d50c4d..f838e3e38 100644 --- a/scribe/lib/scribe/ai/localizations/scribe_localizations.dart +++ b/scribe/lib/scribe/ai/localizations/scribe_localizations.dart @@ -4,7 +4,7 @@ import 'package:multiple_localization/multiple_localization.dart'; import 'package:scribe/scribe/ai/l10n/messages_all.dart'; class ScribeLocalizations { - static const List _supportedLanguageCodes = ['en', 'fr', 'ru', 'vi']; + static const List _supportedLanguageCodes = ['en', 'fr', 'ru', 'vi', 'de', 'it', 'ar']; static ScribeLocalizations of(BuildContext context) { return Localizations.of(context, ScribeLocalizations)!;