diff --git a/lib/src/localization.dart b/lib/src/localization.dart index 97fe73ac..f89f2324 100644 --- a/lib/src/localization.dart +++ b/lib/src/localization.dart @@ -178,7 +178,7 @@ class Localization { if (subKey == 'other') return _resolve('$key.other'); final tag = '$key.$subKey'; - var resource = _resolve(tag, logging: false, fallback: false); + var resource = _resolve(tag, logging: false, fallback: _fallbackTranslations != null); if (resource == tag) { resource = _resolve('$key.other'); } diff --git a/test/easy_localization_test.dart b/test/easy_localization_test.dart index bfb01c6b..d5177d5b 100644 --- a/test/easy_localization_test.dart +++ b/test/easy_localization_test.dart @@ -469,12 +469,12 @@ void main() { expect(Localization.instance.plural('hat_other', 1), 'other hats'); }); - test('other as fallback and fallback translations priority', + test('two as fallback and fallback translations priority', overridePrint(() { printLog = []; expect( Localization.instance.plural('test_fallback_plurals', 2), - '2 seconds', // isNot('fallback two'), + 'fallback two', ); expect(printLog, isEmpty); }));