Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save foxanna/d8467ea2cf56b66869d7dffd6b5123d2 to your computer and use it in GitHub Desktop.
Save foxanna/d8467ea2cf56b66869d7dffd6b5123d2 to your computer and use it in GitHub Desktop.
String get _languageCode => 'en';
String _plural(int count,
{String? zero,
String? one,
String? two,
String? few,
String? many,
String? other}) =>
i69n.plural(count, _languageCode,
zero: zero, one: one, two: two, few: few, many: many, other: other);
class Translations implements i69n.I69nMessageBundle {
const Translations();
String homePageCenterText(int times) =>
"You have pushed the button $times ${_plural(times, one: 'time', many: 'times')}";
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment