You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
18 lines
591 B
Dart
18 lines
591 B
Dart
import 'package:flutter/material.dart';
|
|
import 'package:flutter_localizations/flutter_localizations.dart';
|
|
import 'package:test_sa/core/enums.dart' show SupportedLanguagesEnum;
|
|
|
|
class AppLocalizations {
|
|
AppLocalizations._();
|
|
|
|
static List<Locale> supportedLocales =
|
|
SupportedLanguagesEnum.values.map((e) => Locale(e.name)).toList();
|
|
|
|
static List<LocalizationsDelegate> get delegates => const [
|
|
// AppLocalization.delegate,
|
|
GlobalMaterialLocalizations.delegate,
|
|
GlobalWidgetsLocalizations.delegate,
|
|
GlobalCupertinoLocalizations.delegate,
|
|
];
|
|
}
|