Skip to content

Commit

Permalink
Revert some formatting changes
Browse files Browse the repository at this point in the history
  • Loading branch information
mauriziopinotti committed May 9, 2024
1 parent 33c7c56 commit f79880f
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions lib/src/localization.dart
Original file line number Diff line number Diff line change
Expand Up @@ -150,8 +150,7 @@ class Localization {
late String res;

final pluralRule = _pluralRule(_locale.languageCode, value);
final pluralCase =
pluralRule != null ? pluralRule() : _pluralCaseFallback(value);
final pluralCase = pluralRule != null ? pluralRule() : _pluralCaseFallback(value);

switch (pluralCase) {
case PluralCase.ZERO:
Expand Down Expand Up @@ -194,8 +193,7 @@ class Localization {
if (subKey == 'other') return _resolve('$key.other');

final tag = '$key.$subKey';
var resource =
_resolve(tag, logging: false, fallback: _fallbackTranslations != null);
var resource = _resolve(tag, logging: false, fallback: _fallbackTranslations != null);
if (resource == tag) {
resource = _resolve('$key.other');
}
Expand Down

0 comments on commit f79880f

Please sign in to comment.