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();
String get greetings => "Hello, world!";
}
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:
passwordLengthValidationError(int length):
"The password should be at least $length characters long"
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";
}