Missing translations on login screen (#2227)

This commit is contained in:
Elias Nahum 2018-10-08 12:26:12 -03:00 committed by GitHub
parent bc54c6e0dd
commit f9e49d8c66
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 15 additions and 0 deletions

View file

@ -143,6 +143,14 @@ export default class Login extends PureComponent {
Keyboard.dismiss();
InteractionManager.runAfterInteractions(async () => {
if (!this.props.loginId) {
t('login.noEmail');
t('login.noEmailLdapUsername');
t('login.noEmailUsername');
t('login.noEmailUsernameLdapUsername');
t('login.noLdapUsername');
t('login.noUsername');
t('login.noUsernameLdapUsername');
// it's slightly weird to be constructing the message ID, but it's a bit nicer than triply nested if statements
let msgId = 'login.no';
if (this.props.config.EnableSignInWithEmail === 'true') {

View file

@ -97,7 +97,14 @@
"login.invalidPassword": "Your password is incorrect.",
"login.ldapUsername": "AD/LDAP Username",
"login.ldapUsernameLower": "AD/LDAP username",
"login.noEmail": "Please enter your email",
"login.noEmailLdapUsername": "Please enter your email or {ldapUsername}",
"login.noEmailUsername": "Please enter your email or username",
"login.noEmailUsernameLdapUsername": "Please enter your email, username or {ldapUsername}",
"login.noLdapUsername": "Please enter your {ldapUsername}",
"login.noPassword": "Please enter your password",
"login.noUsername": "Please enter your username",
"login.noUsernameLdapUsername": "Please enter your username or {ldapUsername}",
"login.or": "or",
"login.password": "Password",
"login.signIn": "Sign in",