You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
7 lines
319 B
7 lines
319 B
part of '../neon.dart'; |
|
|
|
Future<AppLocalizations> appLocalizationsFromSystem() async { |
|
final parts = |
|
(await findSystemLocale()).split('_').map((final a) => a.split('.')).reduce((final a, final b) => [...a, ...b]); |
|
return AppLocalizations.delegate.load(Locale(parts[0], parts.length > 1 ? parts[1] : null)); |
|
}
|
|
|