Skip to content

Commit

Permalink
Add delegate field to S class
Browse files Browse the repository at this point in the history
  • Loading branch information
Albert221 committed Jun 21, 2020
1 parent 5a1393b commit 47c2f9f
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/src/generator/l10n_dart_generator.dart
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,8 @@ class S {
const S(this.localeName);
static const delegate = ArbifyLocalizationsDelegate();
static Future<S> load(Locale locale) {
final name = locale.countryCode.isEmpty ? locale.languageCode : locale.toString();
final localeName = Intl.canonicalizedLocale(name);
Expand Down

0 comments on commit 47c2f9f

Please sign in to comment.