From 71da1e370b74d8bc7700537ed299f0b2fd670903 Mon Sep 17 00:00:00 2001 From: sadegh Date: Fri, 2 Apr 2021 01:47:21 +0430 Subject: [PATCH] [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 --- app/i18n/locales/pt-BR.json | 5 ++++- app/views/LoginView.js | 4 ++-- app/views/RegisterView.js | 8 ++++---- 3 files changed, 10 insertions(+), 7 deletions(-) diff --git a/app/i18n/locales/pt-BR.json b/app/i18n/locales/pt-BR.json index b4e2c8a7f..3d52af4a0 100644 --- a/app/i18n/locales/pt-BR.json +++ b/app/i18n/locales/pt-BR.json @@ -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 diff --git a/app/views/LoginView.js b/app/views/LoginView.js index 8e9791d36..31a56ae13 100644 --- a/app/views/LoginView.js +++ b/app/views/LoginView.js @@ -137,7 +137,7 @@ class LoginView extends React.Component { <> {I18n.t('Login')} { this.passwordInput = e; }} placeholder={Accounts_PasswordPlaceholder || I18n.t('Password')} diff --git a/app/views/RegisterView.js b/app/views/RegisterView.js index 750944fed..685f1449a 100644 --- a/app/views/RegisterView.js +++ b/app/views/RegisterView.js @@ -234,7 +234,7 @@ class RegisterView extends React.Component { {I18n.t('Sign_Up')} { this.usernameInput = e; }} placeholder={I18n.t('Username')} @@ -255,7 +255,7 @@ class RegisterView extends React.Component { theme={theme} /> { this.emailInput = e; }} placeholder={I18n.t('Email')} @@ -267,7 +267,7 @@ class RegisterView extends React.Component { theme={theme} /> { this.passwordInput = e; }} placeholder={I18n.t('Password')}