2020-09-18 19:36:41 +02:00
|
|
|
import 'package:flutter/material.dart';
|
2020-10-15 20:37:36 +02:00
|
|
|
import 'package:freezer/languages/crowdin.dart';
|
2020-09-18 19:36:41 +02:00
|
|
|
import 'package:freezer/languages/en_us.dart';
|
|
|
|
import 'package:i18n_extension/i18n_extension.dart';
|
|
|
|
|
|
|
|
const supportedLocales = [
|
|
|
|
const Locale('en', 'US'),
|
|
|
|
const Locale('ar', 'AR'),
|
|
|
|
const Locale('pt', 'BR'),
|
|
|
|
const Locale('it', 'IT'),
|
|
|
|
const Locale('de', 'DE'),
|
2020-09-22 19:13:54 +02:00
|
|
|
const Locale('ru', 'RU'),
|
|
|
|
const Locale('es', 'ES'),
|
2020-10-09 20:52:45 +02:00
|
|
|
const Locale('hr', 'HR'),
|
|
|
|
const Locale('el', 'GR'),
|
|
|
|
const Locale('ko', 'KO'),
|
|
|
|
const Locale('fr', 'FR'),
|
|
|
|
const Locale('he', 'IL'),
|
2020-10-11 22:06:29 +02:00
|
|
|
const Locale('tr', 'TR'),
|
|
|
|
const Locale('ro', 'RO'),
|
2020-10-14 21:09:16 +02:00
|
|
|
const Locale('id', 'ID'),
|
2020-10-15 20:37:36 +02:00
|
|
|
const Locale('fa', 'IR'),
|
|
|
|
const Locale('pl', 'PL'),
|
2020-10-17 21:20:26 +02:00
|
|
|
const Locale('uk', 'UA'),
|
2020-10-19 21:28:45 +02:00
|
|
|
const Locale('hu', 'HU'),
|
2020-10-20 21:55:14 +02:00
|
|
|
const Locale('ur', 'PK'),
|
|
|
|
const Locale('hi', 'IN'),
|
2020-11-09 22:05:47 +01:00
|
|
|
const Locale('sk', 'SK'),
|
2020-11-15 20:25:28 +01:00
|
|
|
const Locale('cs', 'CZ'),
|
2020-11-28 22:32:17 +01:00
|
|
|
const Locale('fil', 'PH'),
|
|
|
|
const Locale('uwu', 'UWU')
|
2020-09-18 19:36:41 +02:00
|
|
|
];
|
|
|
|
|
|
|
|
extension Localization on String {
|
2020-10-15 20:37:36 +02:00
|
|
|
static var _t = Translations.byLocale("en_US") + language_en_us + crowdin;
|
2020-09-18 19:36:41 +02:00
|
|
|
|
|
|
|
String get i18n => localize(this, _t);
|
|
|
|
}
|