From 813abdfcfd0d175d1ceb7dc125da3557cba992e4 Mon Sep 17 00:00:00 2001 From: Markus Wageringel Date: Thu, 18 Aug 2022 19:52:56 +0200 Subject: [PATCH] enable ukrainian --- CHANGELOG.md | 2 ++ lib/l10n/app_uk.arb | 2 +- lib/main.dart | 13 ++----------- 3 files changed, 5 insertions(+), 12 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 44ef8c0..cdddd5b 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,6 +1,8 @@ # Changelog ## [Unreleased] +### Added +- Ukrainian translation (by @andmizyk) ## [1.1.3] - 2022-08-15 ### Added diff --git a/lib/l10n/app_uk.arb b/lib/l10n/app_uk.arb index ec6850a..f791954 100644 --- a/lib/l10n/app_uk.arb +++ b/lib/l10n/app_uk.arb @@ -12,7 +12,7 @@ "moreInfo": "Більше інформації на ", "levelTitle": "Рівень", "endMessage": "Вітаємо!", - "extendedMessage": "T3V0c3RhbmRpbmcgYWNjb21wbGlzaG1lbnQhIFlvdSBoYXZlIGV4cGxvcmVkIHRoZSBhcml0aG1ldGljcyBvZiB0aGUgZmluaXRlIGZpZWxkcyB3aXRoIDExIGFuZCAxMjEgZWxlbWVudHMuIChEaWQgeW91IG5vdGljZSBhIHNpbWlsYXJpdHkgd2l0aCBjb21wbGV4IG51bWJlcnM/KQ==", + "extendedMessage": "0JLQuNC00LDRgtC90LUg0LTQvtGB0Y/Qs9C90LXQvdC90Y8hINCS0Lgg0LTQvtGB0LvRltC00LjQu9C4INCw0YDQuNGE0LzQtdGC0LjQutGDINGB0LrRltC90YfQtdC90L3QuNGFINC/0L7Qu9GW0LIg0ZbQtyAxMSDRliAxMjEg0LXQu9C10LzQtdC90YLQsNC80LguICjQktC4INC30LDQvNGW0YLQuNC70Lgg0YHRhdC+0LbRltGB0YLRjCDRltC3INC60L7QvNC/0LvQtdC60YHQvdC40LzQuCDRh9C40YHQu9Cw0LzQuD8p", "exitDialogTitle": "Зберігання недоступне.", "exitDialogContent": "Увесь поступ буде втрачено під час виходу. Продовжити?", "dialogCancel": "Скасувати", diff --git a/lib/main.dart b/lib/main.dart index 9431ed2..2dd74c2 100644 --- a/lib/main.dart +++ b/lib/main.dart @@ -4,7 +4,6 @@ import 'dart:math'; import 'package:flutter/material.dart'; import 'package:flutter/foundation.dart'; import 'package:flutter/services.dart'; -import 'package:flutter_localizations/flutter_localizations.dart'; import 'package:flutter_gen/gen_l10n/app_localizations.dart'; import 'package:provider/provider.dart'; import 'package:path/path.dart'; @@ -720,16 +719,8 @@ class MyApp extends StatelessWidget { visualDensity: FlexColorScheme.comfortablePlatformDensity, darkIsTrueBlack: world.pureBlack, ), - localizationsDelegates: const [ - AppLocalizations.delegate, - GlobalMaterialLocalizations.delegate, - GlobalWidgetsLocalizations.delegate, - GlobalCupertinoLocalizations.delegate, - ], - supportedLocales: const [ - Locale('en', ''), // English, no country code - Locale('de', ''), // German, no country code - ], + localizationsDelegates: AppLocalizations.localizationsDelegates, + supportedLocales: AppLocalizations.supportedLocales, home: const ExamsScreen(), ), );