Skip to content

Instantly share code, notes, and snippets.

View foxanna's full-sized avatar
💭
👩‍💻💙📱🇺🇦

Anna Leushchenko foxanna

💭
👩‍💻💙📱🇺🇦
View GitHub Profile
class Translations implements i69n.I69nMessageBundle {
const Translations();
GeneralTranslations get general =>
GeneralTranslations(this);
ValidationErrorsTranslations get validationErrors =>
ValidationErrorsTranslations(this);
}
general:
greetings: Hello, world!
validationErrors:
passwordLengthValidationError(int length):
"The password should be at least $length characters long"
class Translations implements i69n.I69nMessageBundle {
const Translations();
String get greetings => "Hello, world!";
Object operator [](String key) {
switch (key) {
case 'greetings':
return greetings;
default:
String get _languageCode => 'en';
String _plural(int count,
{String? zero,
String? one,
String? two,
String? few,
String? many,
String? other}) =>
i69n.plural(count, _languageCode,
homePageCenterText(int times):
"You have pushed the button $times ${_plural(times, one:'time', many:'times')}"
class Translations implements i69n.I69nMessageBundle {
const Translations();
String passwordLengthValidationError(int length) =>
"The password should be at least $length characters long";
}
passwordLengthValidationError(int length):
"The password should be at least $length characters long"