diff --git a/app.js b/app.js index df09c1a..56dba7e 100644 --- a/app.js +++ b/app.js @@ -68,11 +68,11 @@ app.use(async function (request, response, next) { const apis = [ { id: 'cda', - label: translate('cdaApiLabel', response.locals.currentLocale.code) + label: translate('contentDeliveryApiLabel', response.locals.currentLocale.code) }, { id: 'cpa', - label: translate('cpaApiLabel', response.locals.currentLocale.code) + label: translate('contentPreviewApiLabel', response.locals.currentLocale.code) } ] diff --git a/i18n/locales/de-DE.json b/i18n/locales/de-DE.json index 371a0ec..4be17f1 100644 --- a/i18n/locales/de-DE.json +++ b/i18n/locales/de-DE.json @@ -7,10 +7,10 @@ "metaImageDescription": "Dies ist die Beispielanwendung, eine Anwendung die Ihnen hilft Ihre eigene Anwendung mit Contentful zu bauen.", "viewOnGithub": "GitHub", "apiSwitcherHelp": "Ansehen des veröffentlichten und unveröffentlichten Inhalts durch Wechsel von Delivery und Preview APIs.", - "cdaApiLabel": "Content Delivery API", - "cdaApiHelp": "Diese API zeigt veröffentlichte Inhalte", - "cpaApiLabel": "Content Preview API", - "cpaApiHelp": "Diese API zeigt unveröffentlichte Inhalte und Änderungen", + "contentDeliveryApiLabel": "Content Delivery API", + "contentDeliveryApiHelp": "Diese API zeigt veröffentlichte Inhalte", + "contentPreviewApiLabel": "Content Preview API", + "contentPreviewApiHelp": "Diese API zeigt unveröffentlichte Inhalte und Änderungen", "locale": "Sprache", "localeQuestion": "Sie arbeiten mit verschiedenen Sprachen? Dann können Sie die Sprache für Anfragen an die Content Delivery API definieren.", "settingsLabel": "Einstellungen", diff --git a/i18n/locales/en-US.json b/i18n/locales/en-US.json index f72c8d2..ec01ce9 100644 --- a/i18n/locales/en-US.json +++ b/i18n/locales/en-US.json @@ -7,10 +7,10 @@ "metaImageDescription": "This is The Example App, an application built to serve you as a reference while building your own applications using Contentful.", "viewOnGithub": "GitHub", "apiSwitcherHelp": "View the published or draft content by simply switching between the Deliver and Preview APIs.", - "cdaApiLabel": "Content Delivery API", - "cdaApiHelp": "This API fetches published content from the Content Delivery API", - "cpaApiLabel": "Content Preview API", - "cpaApiHelp": "This API fetches un-published content from the Content Preview API", + "contentDeliveryApiLabel": "Content Delivery API", + "contentDeliveryApiHelp": "This API fetches published content from the Content Delivery API", + "contentPreviewApiLabel": "Content Preview API", + "contentPreviewApiHelp": "This API fetches un-published content from the Content Preview API", "locale": "Locale", "localeQuestion": "Working with multiple languages? You can query the Content Delivery API for a specific locale.", "settingsLabel": "Settings", diff --git a/views/layout.pug b/views/layout.pug index a9902ba..39d6635 100644 --- a/views/layout.pug +++ b/views/layout.pug @@ -49,18 +49,18 @@ html value='cda' class=`${currentApi.id === 'cda' ? 'header__controls_button--active' : ''}` ) - | #{translate('cdaApiLabel', currentLocale.code)}: + | #{translate('contentDeliveryApiLabel', currentLocale.code)}: br - span.header__controls_button_help= translate('cdaApiHelp', currentLocale.code) + span.header__controls_button_help= translate('contentDeliveryApiHelp', currentLocale.code) button.header__controls_button( type='submit' name='api' value='cpa' class=`${currentApi.id === 'cpa' ? 'header__controls_button--active' : ''}` ) - | #{translate('cpaApiLabel', currentLocale.code)}: + | #{translate('contentPreviewApiLabel', currentLocale.code)}: br - span.header__controls_button_help= translate('cpaApiHelp', currentLocale.code) + span.header__controls_button_help= translate('contentPreviewApiHelp', currentLocale.code) input(type='hidden' name='locale' value=currentLocale.code) .header__controls_group