Created
May 24, 2020 09:29
-
-
Save foxanna/e1b264d016fdefc416fe2bfdaafc2e93 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
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