From dcd12307a189baea46e5eaf396c72341f4f86ac8 Mon Sep 17 00:00:00 2001
From: Sjonnie2nd <r.loonstra@kpnmail.nl>
Date: Wed, 25 Sep 2024 23:08:47 +0200
Subject: [PATCH] Add Dutch and German translations (#430)

Add Dutch and German translations
---
 .../lib/l10n/fleather_localizations.g.dart    | 12 ++++-
 .../lib/l10n/fleather_localizations_de.g.dart | 48 +++++++++++++++++++
 .../lib/l10n/fleather_localizations_nl.g.dart | 48 +++++++++++++++++++
 .../fleather/lib/l10n/translations/de.arb     | 17 +++++++
 .../fleather/lib/l10n/translations/nl.arb     | 17 +++++++
 5 files changed, 140 insertions(+), 2 deletions(-)
 create mode 100644 packages/fleather/lib/l10n/fleather_localizations_de.g.dart
 create mode 100644 packages/fleather/lib/l10n/fleather_localizations_nl.g.dart
 create mode 100644 packages/fleather/lib/l10n/translations/de.arb
 create mode 100644 packages/fleather/lib/l10n/translations/nl.arb

diff --git a/packages/fleather/lib/l10n/fleather_localizations.g.dart b/packages/fleather/lib/l10n/fleather_localizations.g.dart
index e6e023cb..892e068e 100644
--- a/packages/fleather/lib/l10n/fleather_localizations.g.dart
+++ b/packages/fleather/lib/l10n/fleather_localizations.g.dart
@@ -5,9 +5,11 @@ import 'package:flutter/widgets.dart';
 import 'package:flutter_localizations/flutter_localizations.dart';
 import 'package:intl/intl.dart' as intl;
 
+import 'fleather_localizations_de.g.dart';
 import 'fleather_localizations_en.g.dart';
 import 'fleather_localizations_fa.g.dart';
 import 'fleather_localizations_fr.g.dart';
+import 'fleather_localizations_nl.g.dart';
 
 /// Callers can lookup localized strings with an instance of FleatherLocalizations
 /// returned by `FleatherLocalizations.of(context)`.
@@ -94,9 +96,11 @@ abstract class FleatherLocalizations {
 
   /// A list of this localizations delegate's supported locales.
   static const List<Locale> supportedLocales = <Locale>[
+    Locale('de'),
     Locale('en'),
     Locale('fa'),
-    Locale('fr')
+    Locale('fr'),
+    Locale('nl')
   ];
 
   /// Automatically assign a foreground color to the text
@@ -196,7 +200,7 @@ class _FleatherLocalizationsDelegate
 
   @override
   bool isSupported(Locale locale) =>
-      <String>['en', 'fa', 'fr'].contains(locale.languageCode);
+      <String>['de', 'en', 'fa', 'fr', 'nl'].contains(locale.languageCode);
 
   @override
   bool shouldReload(_FleatherLocalizationsDelegate old) => false;
@@ -205,12 +209,16 @@ class _FleatherLocalizationsDelegate
 FleatherLocalizations lookupFleatherLocalizations(Locale locale) {
   // Lookup logic when only language code is specified.
   switch (locale.languageCode) {
+    case 'de':
+      return FleatherLocalizationsDe();
     case 'en':
       return FleatherLocalizationsEn();
     case 'fa':
       return FleatherLocalizationsFa();
     case 'fr':
       return FleatherLocalizationsFr();
+    case 'nl':
+      return FleatherLocalizationsNl();
   }
 
   throw FlutterError(
diff --git a/packages/fleather/lib/l10n/fleather_localizations_de.g.dart b/packages/fleather/lib/l10n/fleather_localizations_de.g.dart
new file mode 100644
index 00000000..af78a282
--- /dev/null
+++ b/packages/fleather/lib/l10n/fleather_localizations_de.g.dart
@@ -0,0 +1,48 @@
+import 'fleather_localizations.g.dart';
+
+/// The translations for German (`de`).
+class FleatherLocalizationsDe extends FleatherLocalizations {
+  FleatherLocalizationsDe([String locale = 'de']) : super(locale);
+
+  @override
+  String get foregroundColorAutomatic => 'Automatisch';
+
+  @override
+  String get backgroundColorNoColor => 'Keine Farbe';
+
+  @override
+  String get headingNormal => 'Standard';
+
+  @override
+  String get headingLevel1 => 'Überschrift 1';
+
+  @override
+  String get headingLevel2 => 'Überschrift 2';
+
+  @override
+  String get headingLevel3 => 'Überschrift 3';
+
+  @override
+  String get headingLevel4 => 'Überschrift 4';
+
+  @override
+  String get headingLevel5 => 'Überschrift 5';
+
+  @override
+  String get headingLevel6 => 'Überschrift 6';
+
+  @override
+  String get addLinkDialogPasteLink => 'Einen Link einfügen';
+
+  @override
+  String get addLinkDialogApply => 'Anwenden';
+
+  @override
+  String get linkDialogOpen => 'Öffnen';
+
+  @override
+  String get linkDialogCopy => 'Kopieren';
+
+  @override
+  String get linkDialogRemove => 'Entfernen';
+}
diff --git a/packages/fleather/lib/l10n/fleather_localizations_nl.g.dart b/packages/fleather/lib/l10n/fleather_localizations_nl.g.dart
new file mode 100644
index 00000000..2c243b5b
--- /dev/null
+++ b/packages/fleather/lib/l10n/fleather_localizations_nl.g.dart
@@ -0,0 +1,48 @@
+import 'fleather_localizations.g.dart';
+
+/// The translations for Dutch (`nl`).
+class FleatherLocalizationsNl extends FleatherLocalizations {
+  FleatherLocalizationsNl([String locale = 'nl']) : super(locale);
+
+  @override
+  String get foregroundColorAutomatic => 'Automatisch';
+
+  @override
+  String get backgroundColorNoColor => 'Geen kleur';
+
+  @override
+  String get headingNormal => 'Standaard';
+
+  @override
+  String get headingLevel1 => 'Kop 1';
+
+  @override
+  String get headingLevel2 => 'Kop 2';
+
+  @override
+  String get headingLevel3 => 'Kop 3';
+
+  @override
+  String get headingLevel4 => 'Kop 4';
+
+  @override
+  String get headingLevel5 => 'Kop 5';
+
+  @override
+  String get headingLevel6 => 'Kop 6';
+
+  @override
+  String get addLinkDialogPasteLink => 'Een link invoegen';
+
+  @override
+  String get addLinkDialogApply => 'Toepassen';
+
+  @override
+  String get linkDialogOpen => 'Openen';
+
+  @override
+  String get linkDialogCopy => 'Kopiëren';
+
+  @override
+  String get linkDialogRemove => 'Verwijderen';
+}
diff --git a/packages/fleather/lib/l10n/translations/de.arb b/packages/fleather/lib/l10n/translations/de.arb
new file mode 100644
index 00000000..433747ff
--- /dev/null
+++ b/packages/fleather/lib/l10n/translations/de.arb
@@ -0,0 +1,17 @@
+{
+  "@@locale": "de",
+  "foregroundColorAutomatic": "Automatisch",
+  "backgroundColorNoColor": "Keine Farbe",
+  "headingNormal": "Standard",
+  "headingLevel1": "Überschrift 1",
+  "headingLevel2": "Überschrift 2",
+  "headingLevel3": "Überschrift 3",
+  "headingLevel4": "Überschrift 4",
+  "headingLevel5": "Überschrift 5",
+  "headingLevel6": "Überschrift 6",
+  "addLinkDialogPasteLink": "Einen Link einfügen",
+  "addLinkDialogApply": "Anwenden",
+  "linkDialogOpen": "Öffnen",
+  "linkDialogCopy": "Kopieren",
+  "linkDialogRemove": "Entfernen"
+}
\ No newline at end of file
diff --git a/packages/fleather/lib/l10n/translations/nl.arb b/packages/fleather/lib/l10n/translations/nl.arb
new file mode 100644
index 00000000..2f0d2ad1
--- /dev/null
+++ b/packages/fleather/lib/l10n/translations/nl.arb
@@ -0,0 +1,17 @@
+{
+  "@@locale": "nl",
+  "foregroundColorAutomatic": "Automatisch",
+  "backgroundColorNoColor": "Geen kleur",
+  "headingNormal": "Standaard",
+  "headingLevel1": "Kop 1",
+  "headingLevel2": "Kop 2",
+  "headingLevel3": "Kop 3",
+  "headingLevel4": "Kop 4",
+  "headingLevel5": "Kop 5",
+  "headingLevel6": "Kop 6",
+  "addLinkDialogPasteLink": "Een link invoegen",
+  "addLinkDialogApply": "Toepassen",
+  "linkDialogOpen": "Openen",
+  "linkDialogCopy": "Kopiëren",
+  "linkDialogRemove": "Verwijderen"
+}
\ No newline at end of file