rename labels to use full api name

This commit is contained in:
Benedikt Rötsch
2017-11-09 10:42:17 +01:00
committed by Khaled Garbaya
parent 9178e765a3
commit 28845db8e6
4 changed files with 14 additions and 14 deletions

4
app.js
View File

@@ -69,11 +69,11 @@ app.use(async function (request, response, next) {
const apis = [ const apis = [
{ {
id: 'cda', id: 'cda',
label: translate('cdaApiLabel', response.locals.currentLocale.code) label: translate('contentDeliveryApiLabel', response.locals.currentLocale.code)
}, },
{ {
id: 'cpa', id: 'cpa',
label: translate('cpaApiLabel', response.locals.currentLocale.code) label: translate('contentPreviewApiLabel', response.locals.currentLocale.code)
} }
] ]

View File

@@ -7,10 +7,10 @@
"metaImageDescription": "Dies ist die Beispielanwendung, eine Anwendung die Ihnen hilft Ihre eigene Anwendung mit Contentful zu bauen.", "metaImageDescription": "Dies ist die Beispielanwendung, eine Anwendung die Ihnen hilft Ihre eigene Anwendung mit Contentful zu bauen.",
"viewOnGithub": "GitHub", "viewOnGithub": "GitHub",
"apiSwitcherHelp": "Ansehen des veröffentlichten und unveröffentlichten Inhalts durch Wechsel von Delivery und Preview APIs.", "apiSwitcherHelp": "Ansehen des veröffentlichten und unveröffentlichten Inhalts durch Wechsel von Delivery und Preview APIs.",
"cdaApiLabel": "Content Delivery API", "contentDeliveryApiLabel": "Content Delivery API",
"cdaApiHelp": "Diese API zeigt veröffentlichte Inhalte", "contentDeliveryApiHelp": "Diese API zeigt veröffentlichte Inhalte",
"cpaApiLabel": "Content Preview API", "contentPreviewApiLabel": "Content Preview API",
"cpaApiHelp": "Diese API zeigt unveröffentlichte Inhalte und Änderungen", "contentPreviewApiHelp": "Diese API zeigt unveröffentlichte Inhalte und Änderungen",
"locale": "Sprache", "locale": "Sprache",
"localeQuestion": "Sie arbeiten mit verschiedenen Sprachen? Dann können Sie die Sprache für Anfragen an die Content Delivery API definieren.", "localeQuestion": "Sie arbeiten mit verschiedenen Sprachen? Dann können Sie die Sprache für Anfragen an die Content Delivery API definieren.",
"settingsLabel": "Einstellungen", "settingsLabel": "Einstellungen",

View File

@@ -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.", "metaImageDescription": "This is The Example App, an application built to serve you as a reference while building your own applications using Contentful.",
"viewOnGithub": "GitHub", "viewOnGithub": "GitHub",
"apiSwitcherHelp": "View the published or draft content by simply switching between the Deliver and Preview APIs.", "apiSwitcherHelp": "View the published or draft content by simply switching between the Deliver and Preview APIs.",
"cdaApiLabel": "Content Delivery API", "contentDeliveryApiLabel": "Content Delivery API",
"cdaApiHelp": "This API fetches published content from the Content Delivery API", "contentDeliveryApiHelp": "This API fetches published content from the Content Delivery API",
"cpaApiLabel": "Content Preview API", "contentPreviewApiLabel": "Content Preview API",
"cpaApiHelp": "This API fetches un-published content from the Content Preview API", "contentPreviewApiHelp": "This API fetches un-published content from the Content Preview API",
"locale": "Locale", "locale": "Locale",
"localeQuestion": "Working with multiple languages? You can query the Content Delivery API for a specific locale.", "localeQuestion": "Working with multiple languages? You can query the Content Delivery API for a specific locale.",
"settingsLabel": "Settings", "settingsLabel": "Settings",

View File

@@ -49,18 +49,18 @@ html
value='cda' value='cda'
class=`${currentApi.id === 'cda' ? 'header__controls_button--active' : ''}` class=`${currentApi.id === 'cda' ? 'header__controls_button--active' : ''}`
) )
| #{translate('cdaApiLabel', currentLocale.code)}: | #{translate('contentDeliveryApiLabel', currentLocale.code)}:
br br
span.header__controls_button_help= translate('cdaApiHelp', currentLocale.code) span.header__controls_button_help= translate('contentDeliveryApiHelp', currentLocale.code)
button.header__controls_button( button.header__controls_button(
type='submit' type='submit'
name='api' name='api'
value='cpa' value='cpa'
class=`${currentApi.id === 'cpa' ? 'header__controls_button--active' : ''}` class=`${currentApi.id === 'cpa' ? 'header__controls_button--active' : ''}`
) )
| #{translate('cpaApiLabel', currentLocale.code)}: | #{translate('contentPreviewApiLabel', currentLocale.code)}:
br 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) input(type='hidden' name='locale' value=currentLocale.code)
.header__controls_group .header__controls_group