AuthStrings.english constructor
AuthStrings.english({
- dynamic signInWithEmail = "Sign in with email",
- dynamic signInWithGoogle = "Sign in with Google",
- dynamic signInAnonymous = "Continue without registering",
- dynamic understood = "Ok",
- dynamic changePassword = "Change password",
- dynamic cancel = "Cancel",
- dynamic accept = "Acept",
- dynamic next = "NEXT",
- dynamic forgotPassword = "¿Forgot password?",
- dynamic weWillSendYouAnEmailToChangePassword = "We will send you an email to \$ with instructions on how to change the password",
- dynamic emailSentToChangePassword = 'We have sent you an emai to \$',
- dynamic emailRegisteredEnterPasswordNoticeMarkdown = "## Hello again! \n You have already used __\$__ to log in. Enter the password for this account.",
- dynamic privacyMarkdown = "I accept the privacy policy and the terms of use",
- dynamic errorWeakPassword = 'The password is not secure',
- dynamic errorInvalidEmail = 'Invalid email',
- dynamic errorEmailAlreadyInUse = 'That email is already in use',
- dynamic errorWrongPassword = 'Wrong password',
- dynamic errorUserNotFound = 'User not found',
- dynamic errorUserDisabled = 'Disabled user',
- dynamic errorTooManyRequests = 'You made too many requests, please try again later',
- dynamic errorOperationNotAllowed = 'Operation not allowed',
- dynamic emailNotValid = 'Invalid email',
- dynamic emailCantBeEmpty = 'Email cannot be empty',
- dynamic nameCantBeEmpty = 'The name cannot be empty',
- dynamic passwordTooShort = "The password is too short",
- dynamic email = "Email",
- dynamic passwordHint = 'Password',
- dynamic passwordEmpty = 'Enter a password',
- dynamic nameHint = 'Name',
- dynamic loginAppBarTitle = "Login",
Implementation
factory AuthStrings.english(
{signInWithEmail = "Sign in with email",
signInWithGoogle = "Sign in with Google",
signInAnonymous = "Continue without registering",
understood = "Ok",
changePassword = "Change password",
cancel = "Cancel",
accept = "Acept",
next = "NEXT",
forgotPassword = "¿Forgot password?",
weWillSendYouAnEmailToChangePassword =
"We will send you an email to \$ with instructions on how to change the password",
emailSentToChangePassword = 'We have sent you an emai to \$',
emailRegisteredEnterPasswordNoticeMarkdown =
"## Hello again! \n You have already used __\$__ to log in. Enter the password for this account.",
privacyMarkdown = "I accept the privacy policy and the terms of use",
errorWeakPassword = 'The password is not secure',
errorInvalidEmail = 'Invalid email',
errorEmailAlreadyInUse = 'That email is already in use',
errorWrongPassword = 'Wrong password',
errorUserNotFound = 'User not found',
errorUserDisabled = 'Disabled user',
errorTooManyRequests =
'You made too many requests, please try again later',
errorOperationNotAllowed = 'Operation not allowed',
emailNotValid = 'Invalid email',
emailCantBeEmpty = 'Email cannot be empty',
nameCantBeEmpty = 'The name cannot be empty',
passwordTooShort = "The password is too short",
email = "Email",
passwordHint = 'Password',
passwordEmpty = 'Enter a password',
nameHint = 'Name',
loginAppBarTitle = "Login"}) {
return AuthStrings(
signInWithEmail: signInWithEmail,
signInWithGoogle: signInWithGoogle,
signInAnonymous: signInAnonymous,
understood: understood,
changePassword: changePassword,
cancel: cancel,
accept: accept,
next: next,
forgotPassword: forgotPassword,
weWillSendYouAnEmailToChangePassword:
weWillSendYouAnEmailToChangePassword,
emailSentToChangePassword: emailSentToChangePassword,
emailRegisteredEnterPasswordNoticeMarkdown:
emailRegisteredEnterPasswordNoticeMarkdown,
privacyMarkdown: privacyMarkdown,
errorWeakPassword: errorWeakPassword,
errorInvalidEmail: errorInvalidEmail,
errorEmailAlreadyInUse: errorEmailAlreadyInUse,
errorWrongPassword: errorWrongPassword,
errorUserNotFound: errorUserNotFound,
errorUserDisabled: errorUserDisabled,
errorTooManyRequests: errorTooManyRequests,
errorOperationNotAllowed: errorOperationNotAllowed,
emailNotValid: emailNotValid,
emailCantBeEmpty: emailCantBeEmpty,
nameCantBeEmpty: nameCantBeEmpty,
passwordTooShort: passwordTooShort,
email: email,
passwordHint: passwordHint,
passwordEmpty: passwordEmpty,
nameHint: nameHint,
loginAppBarTitle: loginAppBarTitle,
);
}