tsacdop-podcast-app-android/lib/generated/l10n.dart

65 lines
1.7 KiB
Dart
Raw Normal View History

2020-05-09 06:27:05 +02:00
// GENERATED CODE - DO NOT MODIFY BY HAND
import 'package:flutter/material.dart';
import 'package:intl/intl.dart';
import 'intl/messages_all.dart';
// **************************************************************************
// Generator: Flutter Intl IDE plugin
// Made by Localizely
// **************************************************************************
// ignore_for_file: non_constant_identifier_names, lines_longer_than_80_chars
2020-05-09 06:27:05 +02:00
class S {
S();
static S current;
2020-05-09 06:27:05 +02:00
static const AppLocalizationDelegate delegate =
AppLocalizationDelegate();
static Future<S> load(Locale locale) {
2020-05-16 05:14:32 +02:00
final name = (locale.countryCode?.isEmpty ?? false) ? locale.languageCode : locale.toString();
final localeName = Intl.canonicalizedLocale(name);
2020-05-09 06:27:05 +02:00
return initializeMessages(localeName).then((_) {
Intl.defaultLocale = localeName;
S.current = S();
return S.current;
2020-05-09 06:27:05 +02:00
});
}
static S of(BuildContext context) {
return Localizations.of<S>(context, S);
}
}
class AppLocalizationDelegate extends LocalizationsDelegate<S> {
const AppLocalizationDelegate();
List<Locale> get supportedLocales {
return const <Locale>[
Locale.fromSubtags(languageCode: 'en'),
];
}
@override
bool isSupported(Locale locale) => _isSupported(locale);
@override
Future<S> load(Locale locale) => S.load(locale);
@override
bool shouldReload(AppLocalizationDelegate old) => false;
bool _isSupported(Locale locale) {
if (locale != null) {
2020-05-16 05:14:32 +02:00
for (var supportedLocale in supportedLocales) {
2020-05-09 06:27:05 +02:00
if (supportedLocale.languageCode == locale.languageCode) {
return true;
}
}
}
return false;
}
}