freezer/lib/translations.i18n.dart

38 lines
1.0 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 19:13:54 +02: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 21:55:14 +02:00
const Locale('ur', 'PK'),
const Locale('hi', 'IN'),
const Locale('sk', 'SK'),
const Locale('cs', 'CZ'),
2020-09-22 19:13:54 +02:00
const Locale('fil', 'PH')
];
extension Localization on String {
static var _t = Translations.byLocale("en_US") + language_en_us + crowdin;
String get i18n => localize(this, _t);
}