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/e1b264d016fdefc416fe2bfdaafc2e93 to your computer and use it in GitHub Desktop.
Save foxanna/e1b264d016fdefc416fe2bfdaafc2e93 to your computer and use it in GitHub Desktop.
class Translations implements i69n.I69nMessageBundle {
const Translations();
GeneralTranslations get general =>
GeneralTranslations(this);
ValidationErrorsTranslations get validationErrors =>
ValidationErrorsTranslations(this);
}
class GeneralTranslations implements i69n.I69nMessageBundle {
final Translations _parent;
const GeneralTranslations(this._parent);
String get greetings => "Hello, world!";
}
class ValidationErrorsTranslations implements i69n.I69nMessageBundle {
final Translations _parent;
const ValidationErrorsTranslations(this._parent);
String passwordLengthValidationError(int length) =>
"The password should be at least $length characters long";
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment