diff --git a/i18n/locales/de-DE.json b/i18n/locales/de-DE.json index 0bb0555..76b37c9 100644 --- a/i18n/locales/de-DE.json +++ b/i18n/locales/de-DE.json @@ -21,9 +21,10 @@ "footerDisclaimer": "Powered by Contentful. Diese Website und deren Materialien existieren nur für Demonstrationszwecken. Sie können diese benutzen, um den Inhalt ihres Contentful Kontos anzusehen.", "imprintLabel": "Impressum", "contactUsLabel": "Kontakt", - "modalTitle": "Ein referenzierbares Beispiel für Entwickler, die Contentful benutzen.", - "modalIntro": "Dies ist die Beispielanwendung, eine Anwendung die Ihnen hilft Ihre eigene Anwendung mit Contentful zu bauen. Sie stellt eine Plattform fürs online Lernen dar, die mithilfe von Contentful gebaut wurde. (sehr meta!)", - "modalCodeIntro": "Wenn Sie es bevorzugen, sich die Hände schmutzig zu machen, sehen sie sich die Anwendung hier an", + "modalTitle": "Ein Beispiel für Entwickler, die Contentful benutzen.", + "modalIntro": "Dies ist \"The Example App\" in node.js. Während Sie Ihre eigenen Anwendungen mit Contentful bauen, können Sie dieses Beispiel als Referenz verwenden. Den Quellcode finden Sie auf", + "modalSpaceIntro": "Den Inhalt dieser Anwendung können Sie selbst bearbeiten. Dafür müssen Sie den \"The Example App\" space in Ihren Contentful Account importieren. Anleitung hierzu gibt es", + "modalSpaceLinkLabel": "hier", "modalCTALabel": "Gut, verstanden.", "editorialFeaturesHint": "Bearbeiten Sie diesen Eintrag in unserer Web App. Sie müssen sich eingelogged haben und Zugang zum Space haben, um diese Funktion nutzen zu können.", "draftLabel": "Entwurf", diff --git a/i18n/locales/en-US.json b/i18n/locales/en-US.json index d78eb2b..f41a7eb 100644 --- a/i18n/locales/en-US.json +++ b/i18n/locales/en-US.json @@ -1,10 +1,10 @@ { "defaultTitle": "The Example App", "whatIsThisApp": "Help", - "metaDescription": "This is The Example App, an application built to serve you as a reference while building your own applications using Contentful.", - "metaTwitterCard": "This is The Example App, an application built to serve you as a reference while building your own applications using Contentful.", - "metaImageAlt": "This is The Example App, an application built to serve you as a reference while building your own applications using Contentful.", - "metaImageDescription": "This is The Example App, an application built to serve you as a reference while building your own applications using Contentful.", + "metaDescription": "This is \"The Example App\", a reference for building your own applications using Contentful.", + "metaTwitterCard": "This is \"The Example App\", a reference for building your own applications using Contentful.", + "metaImageAlt": "This is \"The Example App\", a reference for building your own applications using Contentful.", + "metaImageDescription": "This is \"The Example App\", a reference for building your own applications using Contentful.", "viewOnGithub": "GitHub", "apiSwitcherHelp": "View the published or draft content by simply switching between the Deliver and Preview APIs.", "contentDeliveryApiLabel": "Content Delivery API", @@ -21,9 +21,10 @@ "footerDisclaimer": "Powered by Contentful. This website and the materials found on it are for demo purposes. You can use this to preview the content created on your Contentful account.", "imprintLabel": "Imprint", "contactUsLabel": "Contact us", - "modalTitle": "A referenceable example for developers using Contentful", - "modalIntro": "This is The Example App, an application built to serve you as a reference while building your own applications using Contentful. This app is an online learning platform which teaches you how Contentful was used to build this app (so meta)!", - "modalCodeIntro": "If you prefer to start by getting your hands dirty with code, check out this app on", + "modalTitle": "A reference for developers using Contentful", + "modalIntro": "This is \"The Example App\" in node.js. While building your own apps with Contentful, you can reference this app's code, found on", + "modalSpaceIntro": "You can also edit the content in the app by cloning the Contentful space to your own Contentful account by following the instructions", + "modalSpaceLinkLabel": "here", "modalCTALabel": "Ok, got it.", "editorialFeaturesHint": "Edit this entry in our web app. You have to be logged in and have access to the connected space to use this feature.", "draftLabel": "draft", diff --git a/test/e2e/specs/the-example-app-spec.js b/test/e2e/specs/the-example-app-spec.js index ad18034..c38a928 100644 --- a/test/e2e/specs/the-example-app-spec.js +++ b/test/e2e/specs/the-example-app-spec.js @@ -6,9 +6,9 @@ describe('The Example App', () => { it('meta tags', () => { cy.title().should('equals', 'Home — The Example App', 'Home page should have correct meta title') - cy.get('meta[name="description"]').should('attr', 'content', 'This is The Example App, an application built to serve you as a reference while building your own applications using Contentful.') + cy.get('meta[name="description"]').should('attr', 'content', 'This is "The Example App", a reference for building your own applications using Contentful.') - cy.get('meta[name="twitter:card"]').should('attr', 'content', 'This is The Example App, an application built to serve you as a reference while building your own applications using Contentful.') + cy.get('meta[name="twitter:card"]').should('attr', 'content', 'This is "The Example App", a reference for building your own applications using Contentful.') cy.get('meta[property="og:title"]').should('attr', 'content', 'Home — The Example App') cy.get('meta[property="og:type"]').should('attr', 'content', 'article') @@ -17,7 +17,7 @@ describe('The Example App', () => { cy.get('meta[property="og:image:type"]').should('attr', 'content', 'image/jpeg') cy.get('meta[property="og:image:width"]').should('attr', 'content', '1200') cy.get('meta[property="og:image:height"]').should('attr', 'content', '1200') - cy.get('meta[property="og:description"]').should('attr', 'content', 'This is The Example App, an application built to serve you as a reference while building your own applications using Contentful.') + cy.get('meta[property="og:description"]').should('attr', 'content', 'This is "The Example App", a reference for building your own applications using Contentful.') cy.get('link[rel="apple-touch-icon"]') .should('attr', 'sizes', '120x120') @@ -46,8 +46,8 @@ describe('The Example App', () => { cy.get('section.modal .modal__wrapper').should('hidden') cy.get('.header__upper-title a').click() cy.get('section.modal .modal__wrapper').should('visible') - cy.get('section.modal .modal__title').should('contain', 'A referenceable example for developers using Contentful') - cy.get('section.modal .modal__content').should('contain', 'This is The Example App, an application built to serve you as a reference while building your own applications using Contentful.') + cy.get('section.modal .modal__title').should('contain', 'A reference for developers using Contentful') + cy.get('section.modal .modal__content').should('contain', 'This is "The Example App" in node.js. While building your own apps with Contentful,') // Close on background cy.get('section.modal .modal__overlay').click({force: true}) diff --git a/views/layout.pug b/views/layout.pug index 39d6635..97b016e 100644 --- a/views/layout.pug +++ b/views/layout.pug @@ -131,11 +131,13 @@ html .modal__wrapper h1.modal__title #{translate('modalTitle', currentLocale.code)} .modal__content - p #{translate('modalIntro', currentLocale.code)} + p #{translate('modalIntro', currentLocale.code)}  + a(href='https://github.com/contentful/the-example-app.nodejs' target='_blank' rel='noopener') GitHub + | . p - | #{translate('modalCodeIntro', currentLocale.code)}  - a(href='https://github.com/contentful/the-example-app.nodejs' target='_blank' rel='noopener') Github - | . + | #{translate('modalSpaceIntro', currentLocale.code)}  + a(href='https://github.com/contentful/content-models/tree/master/the-example-app' target='_blank' rel='noopener')=translate('modalSpaceLinkLabel', currentLocale.code) + | . .modal__cta-wrapper a(href='#').modal__cta.close #{translate('modalCTALabel', currentLocale.code)} .modal__close-wrapper