Unverified Commit 71da1e37 authored by sadegh's avatar sadegh Committed by GitHub
Browse files

[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: default avatarDiego Mello <diegolmello@gmail.com>
parent 28ab9085
......@@ -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"
}
\ No newline at end of file
......@@ -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')}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment