diff --git a/webapp/components/PageFooter/PageFooter.vue b/webapp/components/PageFooter/PageFooter.vue index d90f08b11..d970792bb 100644 --- a/webapp/components/PageFooter/PageFooter.vue +++ b/webapp/components/PageFooter/PageFooter.vue @@ -1,20 +1,20 @@ - diff --git a/webapp/components/PasswordReset/Request.spec.js b/webapp/components/PasswordReset/Request.spec.js index 1804be6a6..63e51cf76 100644 --- a/webapp/components/PasswordReset/Request.spec.js +++ b/webapp/components/PasswordReset/Request.spec.js @@ -6,11 +6,11 @@ const localVue = createLocalVue() localVue.use(Styleguide) config.stubs['sweetalert-icon'] = '' +config.stubs['client-only'] = '' +config.stubs['nuxt-link'] = '' describe('Request', () => { - let wrapper - let Wrapper - let mocks + let wrapper, Wrapper, mocks, stubs beforeEach(() => { mocks = { @@ -23,6 +23,12 @@ describe('Request', () => { loading: false, mutate: jest.fn().mockResolvedValue({ data: { reqestPasswordReset: true } }), }, + $i18n: { + locale: () => 'en', + }, + } + stubs = { + LocaleSwitch: "
", } }) @@ -33,6 +39,7 @@ describe('Request', () => { return mount(Request, { mocks, localVue, + stubs, }) } diff --git a/webapp/components/PasswordReset/Request.vue b/webapp/components/PasswordReset/Request.vue index ff2d0206d..57f2808a5 100644 --- a/webapp/components/PasswordReset/Request.vue +++ b/webapp/components/PasswordReset/Request.vue @@ -30,9 +30,7 @@ icon="envelope" /> - - {{ $t('password-reset.form.description') }} - + {{ $t('password-reset.form.description') }} + +
+ {{ $t('site.login') }} +
diff --git a/webapp/components/Registration/CreateUserAccount.spec.js b/webapp/components/Registration/CreateUserAccount.spec.js index 75e1ade83..6551211c0 100644 --- a/webapp/components/Registration/CreateUserAccount.spec.js +++ b/webapp/components/Registration/CreateUserAccount.spec.js @@ -7,12 +7,10 @@ const localVue = createLocalVue() localVue.use(Styleguide) config.stubs['sweetalert-icon'] = '' +config.stubs['client-only'] = '' describe('CreateUserAccount', () => { - let wrapper - let Wrapper - let mocks - let propsData + let wrapper, Wrapper, mocks, propsData, stubs beforeEach(() => { mocks = { @@ -27,6 +25,9 @@ describe('CreateUserAccount', () => { }, } propsData = {} + stubs = { + LocaleSwitch: "
", + } }) describe('mount', () => { @@ -35,6 +36,7 @@ describe('CreateUserAccount', () => { mocks, propsData, localVue, + stubs, }) } diff --git a/webapp/components/Registration/CreateUserAccount.vue b/webapp/components/Registration/CreateUserAccount.vue index bedc24402..ebcfb9691 100644 --- a/webapp/components/Registration/CreateUserAccount.vue +++ b/webapp/components/Registration/CreateUserAccount.vue @@ -3,11 +3,9 @@ - {{ $t('registration.create-user-account.success') }} + + {{ $t('registration.create-user-account.success') }} + - +
diff --git a/webapp/layouts/default.vue b/webapp/layouts/default.vue index e9a4e8d4e..3e5a0f12c 100644 --- a/webapp/layouts/default.vue +++ b/webapp/layouts/default.vue @@ -88,11 +88,9 @@ {{ $t('login.hello') }} {{ userName }}
diff --git a/webapp/locales/de.json b/webapp/locales/de.json index a28baa2f9..20065bf0e 100644 --- a/webapp/locales/de.json +++ b/webapp/locales/de.json @@ -36,7 +36,8 @@ "responsible": "Verantwortlicher gemäß § 55 Abs. 2 RStV ", "bank": "Bankverbindung", "germany": "Deutschland", - "code-of-conduct": "Verhaltenscodex" + "code-of-conduct": "Verhaltenscodex", + "login": "Zurück zum Anmeldung" }, "sorting": { "newest": "Neuste", @@ -56,7 +57,6 @@ "success": "Du bist eingeloggt!" }, "password-reset": { - "title": "Passwort zurücksetzen", "form": { "description": "Eine Mail zum Zurücksetzen des Passworts wird an die angegebene E-Mail Adresse geschickt.", "submit": "Email anfordern", @@ -614,4 +614,4 @@ "have-fun": "Jetzt aber viel Spaß mit der Alpha von Human Connection! Für den ersten Weltfrieden. ♥︎", "closing": "Herzlichst

Euer Human Connection Team" } -} +} \ No newline at end of file diff --git a/webapp/locales/en.json b/webapp/locales/en.json index e08f7bdad..8cfa9a342 100644 --- a/webapp/locales/en.json +++ b/webapp/locales/en.json @@ -36,14 +36,15 @@ "responsible": "responsible for contents of this page (§ 55 Abs. 2 RStV)", "bank": "bank account", "germany": "Germany", - "code-of-conduct": "Code of Conduct" + "code-of-conduct": "Code of Conduct", + "login": "Back to login" }, "sorting": { "newest": "Newest", "oldest": "Oldest" }, "login": { - "copy": "If you already have a human-connection account, login here.", + "copy": "If you already have a human-connection account, please login.", "login": "Login", "logout": "Logout", "email": "Your Email", @@ -60,7 +61,7 @@ "form": { "description": "A password reset email will be sent to the given email address.", "submit": "Request email", - "submitted": "A mail with further instruction has been sent to {email}" + "submitted": "An email with further instructions has been sent to {email}" } }, "registration": { @@ -614,4 +615,4 @@ "have-fun": "Now have fun with the alpha version of Human Connection! For the first universal peace. ♥︎", "closing": "Thank you very much

your Human Connection Team" } -} +} \ No newline at end of file diff --git a/webapp/locales/pt.json b/webapp/locales/pt.json index 785844ebf..d08d569c2 100644 --- a/webapp/locales/pt.json +++ b/webapp/locales/pt.json @@ -1,28 +1,37 @@ { "site": { - "made": "Com ❤ feito", + "made": "Feito com ❤", "imprint": "Impressão", - "termsAc": "termos e condições", - "data-privacy": "protecção de dados", + "termsAc": "Termos e Condições", + "data-privacy": "Proteção de Dados", "changelog": "Mudanças e Histórico", "contact": "Contato", - "tribunal": "tribunal", "tribunal": "tribunal de registo", "register": "número de registo", "director": "Diretor Administrativo", "taxident": "Número de identificação do imposto sobre o valor acrescentado de acordo com o § 27 da Lei do Imposto sobre o Valor Acrescentado (Alemanha)", "responsible": "Responsável segundo § 55 Abs. 2 RStV (Alemanha) ", "bank": "conta bancária", - "germany": "Alemanha" + "germany": "Alemanha", + "code-of-conduct": "Codigo de Conduto", + "login": "Voltar para o Login" }, "login": { - "copy": "Se você já tem uma conta no Human Connection, entre aqui.", + "copy": "Se você já tem uma conta no Human Connection, por favor faça o login.", "login": "Entrar", "logout": "Sair", "email": "Seu email", "password": "Sua senha", "moreInfo": "O que é o Human Connection?", - "hello": "Olá" + "hello": "Olá", + "forgotPassword": "Esqueceu a sua senha?" + }, + "password-reset": { + "form": { + "description": "Um e-mail de redefinição de senha será enviado para o endereço de e-mail fornecido.", + "submit": "Solicitar email", + "submitted": "Um e-mail com mais instruções foi enviado para {email}" + } }, "profile": { "name": "Meu perfil", @@ -203,4 +212,4 @@ "shoutButton": { "shouted": "Aclamou" } -} +} \ No newline at end of file diff --git a/webapp/pages/login.vue b/webapp/pages/login.vue index fe5ef983f..46168f1ab 100644 --- a/webapp/pages/login.vue +++ b/webapp/pages/login.vue @@ -53,13 +53,17 @@ name="submit" type="submit" icon="sign-in" - >{{ $t('login.login') }}
+ > + {{ $t('login.login') }} + {{ $t('login.moreInfo') }} + > + {{ $t('login.moreInfo') }} + @@ -72,7 +76,6 @@