diff --git a/frontend/src/locales/de.json b/frontend/src/locales/de.json index 8f6975889..0e60a3094 100644 --- a/frontend/src/locales/de.json +++ b/frontend/src/locales/de.json @@ -8,6 +8,7 @@ "imprint":"Impressum", "privacy_policy":"Datenschutzerklärung", "members_area": "Mitgliedsbereich", + "whitepaper": "Whitepaper", "back":"Zurück", "send":"Senden", "transactions":"Transaktionen", diff --git a/frontend/src/locales/en.json b/frontend/src/locales/en.json index 849873cae..1dc703f14 100644 --- a/frontend/src/locales/en.json +++ b/frontend/src/locales/en.json @@ -8,6 +8,7 @@ "imprint":"Legal notice", "privacy_policy":"Privacy policy", "members_area": "Member's area", + "whitepaper": "Whitepaper", "back":"Back", "send":"Send", "transactions":"Transactions", diff --git a/frontend/src/views/Layout/ContentFooter.spec.js b/frontend/src/views/Layout/ContentFooter.spec.js index 1fbdf1c1c..ec4d3ff74 100644 --- a/frontend/src/views/Layout/ContentFooter.spec.js +++ b/frontend/src/views/Layout/ContentFooter.spec.js @@ -92,6 +92,12 @@ describe('ContentFooter', () => { ) }) + it('links to the whitepaper', () => { + expect(wrapper.findAll('a.nav-link').at(3).attributes('href')).toEqual( + 'https://docs.google.com/document/d/1kcX1guOi6tDgnFHD9tf7fB_MneKTx-0nHJxzdN8ygNs/edit?usp=sharing', + ) + }) + describe('links are localized', () => { beforeEach(() => { mocks.$i18n.locale = 'de' @@ -120,6 +126,12 @@ describe('ContentFooter', () => { 'https://elopage.com/s/gradido/sign_in?locale=de', ) }) + + it('links to the German whitepaper when locale is de', () => { + expect(wrapper.findAll('a.nav-link').at(3).attributes('href')).toEqual( + 'https://docs.google.com/document/d/1jZp-DiiMPI9ZPNXmjsvOQ1BtnfDFfx8BX7CDmA8KKjY/edit?usp=sharing', + ) + }) }) }) }) diff --git a/frontend/src/views/Layout/ContentFooter.vue b/frontend/src/views/Layout/ContentFooter.vue index 1ce276f73..b261cafb3 100755 --- a/frontend/src/views/Layout/ContentFooter.vue +++ b/frontend/src/views/Layout/ContentFooter.vue @@ -29,6 +29,16 @@ > {{ $t('members_area') }} + + {{ $t('whitepaper') }} +