Last active
October 7, 2021 19:29
-
-
Save foxanna/d8467ea2cf56b66869d7dffd6b5123d2 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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