[FIX] i18n not being applied on login/register labels (#2930)
* Use I18n translate in login text input label * Add to register and add missing strings Co-authored-by: Diego Mello <diegolmello@gmail.com>
This commit is contained in:
parent
28ab90857c
commit
71da1e370b
|
@ -653,5 +653,8 @@
|
|||
"Enter_workspace_URL": "Digite a URL da sua workspace",
|
||||
"Workspace_URL_Example": "Ex. sua-empresa.rocket.chat",
|
||||
"This_room_encryption_has_been_enabled_by__username_": "A criptografia para essa sala foi habilitada por {{username}}",
|
||||
"This_room_encryption_has_been_disabled_by__username_": "A criptografia para essa sala foi desabilitada por {{username}}"
|
||||
"This_room_encryption_has_been_disabled_by__username_": "A criptografia para essa sala foi desabilitada por {{username}}",
|
||||
"Apply_Your_Certificate": "Aplicar certificado",
|
||||
"Do_you_have_a_certificate": "Você tem um certificado?",
|
||||
"Your_certificate": "Seu certificado"
|
||||
}
|
|
@ -137,7 +137,7 @@ class LoginView extends React.Component {
|
|||
<>
|
||||
<Text style={[styles.title, sharedStyles.textBold, { color: themes[theme].titleText }]}>{I18n.t('Login')}</Text>
|
||||
<TextInput
|
||||
label='Email or username'
|
||||
label={I18n.t('Username_or_email')}
|
||||
containerStyle={styles.inputContainer}
|
||||
placeholder={Accounts_EmailOrUsernamePlaceholder || I18n.t('Username_or_email')}
|
||||
keyboardType='email-address'
|
||||
|
@ -151,7 +151,7 @@ class LoginView extends React.Component {
|
|||
value={user}
|
||||
/>
|
||||
<TextInput
|
||||
label='Password'
|
||||
label={I18n.t('Password')}
|
||||
containerStyle={styles.inputContainer}
|
||||
inputRef={(e) => { this.passwordInput = e; }}
|
||||
placeholder={Accounts_PasswordPlaceholder || I18n.t('Password')}
|
||||
|
|
|
@ -234,7 +234,7 @@ class RegisterView extends React.Component {
|
|||
<LoginServices navigation={navigation} />
|
||||
<Text style={[styles.title, sharedStyles.textBold, { color: themes[theme].titleText }]}>{I18n.t('Sign_Up')}</Text>
|
||||
<TextInput
|
||||
label='Name'
|
||||
label={I18n.t('Name')}
|
||||
containerStyle={styles.inputContainer}
|
||||
placeholder={I18n.t('Name')}
|
||||
returnKeyType='next'
|
||||
|
@ -244,7 +244,7 @@ class RegisterView extends React.Component {
|
|||
theme={theme}
|
||||
/>
|
||||
<TextInput
|
||||
label='Username'
|
||||
label={I18n.t('Username')}
|
||||
containerStyle={styles.inputContainer}
|
||||
inputRef={(e) => { this.usernameInput = e; }}
|
||||
placeholder={I18n.t('Username')}
|
||||
|
@ -255,7 +255,7 @@ class RegisterView extends React.Component {
|
|||
theme={theme}
|
||||
/>
|
||||
<TextInput
|
||||
label='Email'
|
||||
label={I18n.t('Email')}
|
||||
containerStyle={styles.inputContainer}
|
||||
inputRef={(e) => { this.emailInput = e; }}
|
||||
placeholder={I18n.t('Email')}
|
||||
|
@ -267,7 +267,7 @@ class RegisterView extends React.Component {
|
|||
theme={theme}
|
||||
/>
|
||||
<TextInput
|
||||
label='Password'
|
||||
label={I18n.t('Password')}
|
||||
containerStyle={styles.inputContainer}
|
||||
inputRef={(e) => { this.passwordInput = e; }}
|
||||
placeholder={I18n.t('Password')}
|
||||
|
|
Loading…
Reference in New Issue