freezer/lib/translations.i18n.dart

42 lines
1.1 KiB
Dart
Raw Normal View History

import 'package:flutter/material.dart';
import 'package:freezer/languages/crowdin.dart';
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 17:13:54 +00:00
const Locale('ru', 'RU'),
const Locale('es', 'ES'),
const Locale('hr', 'HR'),
const Locale('el', 'GR'),
const Locale('ko', 'KO'),
const Locale('fr', 'FR'),
const Locale('he', 'IL'),
const Locale('tr', 'TR'),
const Locale('ro', 'RO'),
const Locale('id', 'ID'),
const Locale('fa', 'IR'),
const Locale('pl', 'PL'),
const Locale('uk', 'UA'),
const Locale('hu', 'HU'),
2020-10-20 19:55:14 +00:00
const Locale('ur', 'PK'),
const Locale('hi', 'IN'),
const Locale('sk', 'SK'),
const Locale('cs', 'CZ'),
const Locale('vi', 'VI'),
const Locale('nl', 'NL'),
const Locale('sl', 'SL'),
2020-11-28 21:32:17 +00:00
const Locale('fil', 'PH'),
const Locale('uwu', 'UWU')
];
extension Localization on String {
static var _t = Translations.byLocale("en_US") + language_en_us + crowdin;
String get i18n => localize(this, _t);
}