ignorePluralRules property
Ignore usage of plural strings for languages that do not use plural rules. @Default value false Example:
// Default behavior, use "zero" rule for 0 even if the language doesn't
// use it by default (e.g. "en"). If "zero" localization for that string
// doesn't exist, "other" is still used as fallback.
// "nTimes": "{count, plural, =0{never} =1{once} other{{count} times}}"
// Text(AppLocalizations.of(context)!.nTimes(_counter)),
// will print "never, once, 2 times" for ALL languages.
ignorePluralRules: true
// Use "zero" rule for 0 only if the language is set to do so (e.g. for
"lt" but not for "en").
// "nTimes": "{count, plural, =0{never} =1{once} other{{count} times}}"
// Text(AppLocalizations.of(context)!.nTimes(_counter)),
// will print "never, once, 2 times" ONLY for languages with plural rules.
ignorePluralRules: false
Implementation
final bool ignorePluralRules;