rename labels to use full api name
This commit is contained in:
committed by
Benedikt Rötsch
parent
a0540d3097
commit
fc68385384
4
app.js
4
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)
|
||||
}
|
||||
]
|
||||
|
||||
|
||||
@@ -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",
|
||||
|
||||
@@ -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",
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user