From ef562bcaad51f7e253a1b02a0eddcc44a2c8e379 Mon Sep 17 00:00:00 2001 From: Linus Rath Date: Wed, 18 Mar 2026 18:00:51 +0100 Subject: [PATCH] fix: add email export/import localization keys for multiple languages --- lib/__tests__/translations.test.ts | 1 + locales/de/common.json | 7 ++++++- locales/es/common.json | 7 ++++++- locales/fr/common.json | 7 ++++++- locales/it/common.json | 7 ++++++- locales/ja/common.json | 7 ++++++- locales/nl/common.json | 7 ++++++- locales/pt/common.json | 7 ++++++- 8 files changed, 43 insertions(+), 7 deletions(-) diff --git a/lib/__tests__/translations.test.ts b/lib/__tests__/translations.test.ts index d4634c89..a91aab8d 100644 --- a/lib/__tests__/translations.test.ts +++ b/lib/__tests__/translations.test.ts @@ -1,3 +1,4 @@ +// @vitest-environment node import fs from 'fs'; import path from 'path'; import { describe, expect, it } from 'vitest'; diff --git a/locales/de/common.json b/locales/de/common.json index 2e1d1da0..dbea8749 100644 --- a/locales/de/common.json +++ b/locales/de/common.json @@ -191,6 +191,8 @@ "mark_read": "Als gelesen markieren", "print": "Drucken", "view_source": "Quelltext anzeigen", + "export_email": "Als .eml exportieren", + "import_email": ".eml importieren", "keyboard_shortcuts": "Tastaturkürzel (?)", "email_source": "E-Mail-Quelltext", "copy_source": "In Zwischenablage kopieren", @@ -527,7 +529,10 @@ "templates_exported": "Vorlagen erfolgreich exportiert", "templates_imported": "{count, plural, one {# Vorlage importiert} other {# Vorlagen importiert}}", "templates_import_errors": "Einige Vorlagen konnten nicht importiert werden", - "templates_import_empty": "Keine Vorlagen in der Datei gefunden" + "templates_import_empty": "Keine Vorlagen in der Datei gefunden", + "export_email_error": "Fehler beim Exportieren der E-Mail", + "import_email_success": "E-Mail erfolgreich importiert", + "import_email_error": "Fehler beim Importieren der E-Mail" }, "date": { "today": "Heute", diff --git a/locales/es/common.json b/locales/es/common.json index 60051267..aede70eb 100644 --- a/locales/es/common.json +++ b/locales/es/common.json @@ -191,6 +191,8 @@ "mark_read": "Marcar como leído", "print": "Imprimir", "view_source": "Ver código fuente", + "export_email": "Exportar como .eml", + "import_email": "Importar .eml", "keyboard_shortcuts": "Atajos de teclado (?)", "email_source": "Código Fuente del Correo", "copy_source": "Copiar al portapapeles", @@ -527,7 +529,10 @@ "templates_exported": "Plantillas exportadas correctamente", "templates_imported": "{count, plural, one {# plantilla importada} other {# plantillas importadas}}", "templates_import_errors": "Algunas plantillas no se pudieron importar", - "templates_import_empty": "No se encontraron plantillas en el archivo" + "templates_import_empty": "No se encontraron plantillas en el archivo", + "export_email_error": "Error al exportar el correo electrónico", + "import_email_success": "Correo electrónico importado correctamente", + "import_email_error": "Error al importar el correo electrónico" }, "date": { "today": "Hoy", diff --git a/locales/fr/common.json b/locales/fr/common.json index 8419df01..747b22cc 100644 --- a/locales/fr/common.json +++ b/locales/fr/common.json @@ -191,6 +191,8 @@ "mark_read": "Marquer comme lu", "print": "Imprimer", "view_source": "Voir la source", + "export_email": "Exporter en .eml", + "import_email": "Importer un .eml", "keyboard_shortcuts": "Raccourcis clavier (?)", "email_source": "Source de l'email", "copy_source": "Copier dans le presse-papiers", @@ -527,7 +529,10 @@ "templates_exported": "Modèles exportés avec succès", "templates_imported": "{count, plural, one {# modèle importé} other {# modèles importés}}", "templates_import_errors": "Certains modèles n'ont pas pu être importés", - "templates_import_empty": "Aucun modèle trouvé dans le fichier" + "templates_import_empty": "Aucun modèle trouvé dans le fichier", + "export_email_error": "Échec de l'exportation de l'e-mail", + "import_email_success": "E-mail importé avec succès", + "import_email_error": "Échec de l'importation de l'e-mail" }, "date": { "today": "Aujourd'hui", diff --git a/locales/it/common.json b/locales/it/common.json index 93d29fd7..487666ca 100644 --- a/locales/it/common.json +++ b/locales/it/common.json @@ -191,6 +191,8 @@ "mark_read": "Segna come letto", "print": "Stampa", "view_source": "Visualizza sorgente", + "export_email": "Esporta come .eml", + "import_email": "Importa .eml", "keyboard_shortcuts": "Scorciatoie da tastiera (?)", "email_source": "Sorgente del messaggio", "copy_source": "Copia negli appunti", @@ -527,7 +529,10 @@ "templates_exported": "Modelli esportati con successo", "templates_imported": "{count, plural, one {# modello importato} other {# modelli importati}}", "templates_import_errors": "Alcuni modelli non sono stati importati", - "templates_import_empty": "Nessun modello trovato nel file" + "templates_import_empty": "Nessun modello trovato nel file", + "export_email_error": "Impossibile esportare l'e-mail", + "import_email_success": "E-mail importata con successo", + "import_email_error": "Impossibile importare l'e-mail" }, "date": { "today": "Oggi", diff --git a/locales/ja/common.json b/locales/ja/common.json index 7be34e16..6b5594b2 100644 --- a/locales/ja/common.json +++ b/locales/ja/common.json @@ -191,6 +191,8 @@ "mark_read": "既読にする", "print": "印刷", "view_source": "ソースを表示", + "export_email": ".emlとしてエクスポート", + "import_email": ".emlをインポート", "keyboard_shortcuts": "キーボードショートカット (?)", "email_source": "メールソース", "copy_source": "クリップボードにコピー", @@ -527,7 +529,10 @@ "templates_exported": "テンプレートをエクスポートしました", "templates_imported": "{count}件のテンプレートをインポートしました", "templates_import_errors": "一部のテンプレートをインポートできませんでした", - "templates_import_empty": "ファイルにテンプレートが見つかりません" + "templates_import_empty": "ファイルにテンプレートが見つかりません", + "export_email_error": "メールのエクスポートに失敗しました", + "import_email_success": "メールを正常にインポートしました", + "import_email_error": "メールのインポートに失敗しました" }, "date": { "today": "今日", diff --git a/locales/nl/common.json b/locales/nl/common.json index 801877f0..72cb8dbe 100644 --- a/locales/nl/common.json +++ b/locales/nl/common.json @@ -191,6 +191,8 @@ "mark_read": "Markeren als gelezen", "print": "Afdrukken", "view_source": "Bron bekijken", + "export_email": "Exporteren als .eml", + "import_email": ".eml importeren", "keyboard_shortcuts": "Sneltoetsen (?)", "email_source": "E-mailbron", "copy_source": "Kopiëren naar klembord", @@ -527,7 +529,10 @@ "templates_exported": "Sjablonen succesvol geëxporteerd", "templates_imported": "{count, plural, one {# sjabloon geïmporteerd} other {# sjablonen geïmporteerd}}", "templates_import_errors": "Sommige sjablonen konden niet worden geïmporteerd", - "templates_import_empty": "Geen sjablonen gevonden in het bestand" + "templates_import_empty": "Geen sjablonen gevonden in het bestand", + "export_email_error": "Kan e-mail niet exporteren", + "import_email_success": "E-mail succesvol geïmporteerd", + "import_email_error": "Kan e-mail niet importeren" }, "date": { "today": "Vandaag", diff --git a/locales/pt/common.json b/locales/pt/common.json index bb0d6af2..036fe539 100644 --- a/locales/pt/common.json +++ b/locales/pt/common.json @@ -191,6 +191,8 @@ "mark_read": "Marcar como lido", "print": "Imprimir", "view_source": "Ver código-fonte", + "export_email": "Exportar como .eml", + "import_email": "Importar .eml", "keyboard_shortcuts": "Atalhos de teclado (?)", "email_source": "Código-fonte do E-mail", "copy_source": "Copiar para a área de transferência", @@ -527,7 +529,10 @@ "templates_exported": "Modelos exportados com sucesso", "templates_imported": "{count, plural, one {# modelo importado} other {# modelos importados}}", "templates_import_errors": "Alguns modelos não puderam ser importados", - "templates_import_empty": "Nenhum modelo encontrado no arquivo" + "templates_import_empty": "Nenhum modelo encontrado no arquivo", + "export_email_error": "Falha ao exportar o e-mail", + "import_email_success": "E-mail importado com sucesso", + "import_email_error": "Falha ao importar o e-mail" }, "date": { "today": "Hoje",