From d4ed00f6b84c3bba3fd55aec17fe491a1e2e2b2a Mon Sep 17 00:00:00 2001
From: vjrj <vjrj@comunes.org>
Date: Sun, 30 Apr 2023 20:23:29 +0200
Subject: [PATCH] Added Italiano and Euskara translations

---
 ios/Runner/Info.plist                 | 2 ++
 lib/custom_feedback_localization.dart | 4 +++-
 lib/main.dart                         | 2 ++
 lib/ui/screens/fifth_screen.dart      | 8 ++++++++
 4 files changed, 15 insertions(+), 1 deletion(-)

diff --git a/ios/Runner/Info.plist b/ios/Runner/Info.plist
index 152efd57..0a8ab6c2 100644
--- a/ios/Runner/Info.plist
+++ b/ios/Runner/Info.plist
@@ -46,11 +46,13 @@
     	<string>ast</string>
     	<string>en</string>
     	<string>es</string>
+    	<string>eu</string>
     	<string>fr</string>
     	<string>ca</string>
     	<string>gl</string>
     	<string>de</string>
     	<string>nl</string>
+    	<string>it</string>
     	<string>pt</string>
     </array>
     <key>LSApplicationQueriesSchemes</key>
diff --git a/lib/custom_feedback_localization.dart b/lib/custom_feedback_localization.dart
index 2ab37e04..b53b721b 100644
--- a/lib/custom_feedback_localization.dart
+++ b/lib/custom_feedback_localization.dart
@@ -22,14 +22,16 @@ class CustomFeedbackLocalizationsDelegate
   @override
   // ignore: overridden_fields
   final Map<Locale, FeedbackLocalizations> supportedLocales =
-      <Locale, FeedbackLocalizations>{
+  <Locale, FeedbackLocalizations>{
     const Locale('es', 'AST'): CustomFeedbackLocalizations(),
     const Locale('ca'): CustomFeedbackLocalizations(),
     const Locale('de'): CustomFeedbackLocalizations(),
     const Locale('en'): CustomFeedbackLocalizations(),
     const Locale('es'): CustomFeedbackLocalizations(),
+    const Locale('eu'): CustomFeedbackLocalizations(),
     const Locale('fr'): CustomFeedbackLocalizations(),
     const Locale('gl'): CustomFeedbackLocalizations(),
+    const Locale('it'): CustomFeedbackLocalizations(),
     const Locale('nl'): CustomFeedbackLocalizations(),
     const Locale('pt'): CustomFeedbackLocalizations(),
   };
diff --git a/lib/main.dart b/lib/main.dart
index f3008452..242efd52 100644
--- a/lib/main.dart
+++ b/lib/main.dart
@@ -108,8 +108,10 @@ void main() async {
             Locale('de'),
             Locale('en'),
             Locale('es'),
+            Locale('eu'),
             Locale('fr'),
             Locale('gl'),
+            Locale('it'),
             Locale('nl'),
             Locale('pt'),
           ],
diff --git a/lib/ui/screens/fifth_screen.dart b/lib/ui/screens/fifth_screen.dart
index 6c6de020..f976d940 100644
--- a/lib/ui/screens/fifth_screen.dart
+++ b/lib/ui/screens/fifth_screen.dart
@@ -104,6 +104,10 @@ class _FifthScreenState extends State<FifthScreen> {
                           value: Locale('es'),
                           child: Text('Español'),
                         ),
+                        DropdownMenuItem<Locale>(
+                          value: Locale('eu'),
+                          child: Text('Euskara'),
+                        ),
                         DropdownMenuItem<Locale>(
                           value: Locale('fr'),
                           child: Text('Français'),
@@ -116,6 +120,10 @@ class _FifthScreenState extends State<FifthScreen> {
                           value: Locale('nl'),
                           child: Text('Nederlands'),
                         ),
+                        DropdownMenuItem<Locale>(
+                          value: Locale('it'),
+                          child: Text('Italiano'),
+                        ),
                         DropdownMenuItem<Locale>(
                           value: Locale('pt'),
                           child: Text('Português'),
-- 
GitLab