From 9b76e5a74b16d53f26336c0dc2fc3215e21c8552 Mon Sep 17 00:00:00 2001 From: Robert Linde Date: Mon, 13 Nov 2017 21:04:55 +0100 Subject: [PATCH] Add translation for edit in the web app (#64) --- i18n/locales/de-DE.json | 3 ++- i18n/locales/en-US.json | 3 ++- views/mixins/_editorialFeatures.pug | 2 +- 3 files changed, 5 insertions(+), 3 deletions(-) diff --git a/i18n/locales/de-DE.json b/i18n/locales/de-DE.json index 9291c1e..0808cc7 100644 --- a/i18n/locales/de-DE.json +++ b/i18n/locales/de-DE.json @@ -79,5 +79,6 @@ "previewKeyInvalidLabel": "Ihr Preview API Zugangsschlüssel ist ungültig.", "beginnerLabel": "Anfänger", "intermediateLabel": "Fortgeschrittener", - "advancedLabel": "Experte" + "advancedLabel": "Experte", + "editInTheWebAppLabel": "In der web app bearbeiten" } diff --git a/i18n/locales/en-US.json b/i18n/locales/en-US.json index 89d60ea..16139d3 100644 --- a/i18n/locales/en-US.json +++ b/i18n/locales/en-US.json @@ -79,5 +79,6 @@ "previewKeyInvalidLabel": "Your Preview API key is invalid.", "beginnerLabel": "Beginner", "intermediateLabel": "Intermediate", - "advancedLabel": "Advanced" + "advancedLabel": "Advanced", + "editInTheWebAppLabel": "Edit in the web app" } diff --git a/views/mixins/_editorialFeatures.pug b/views/mixins/_editorialFeatures.pug index 2955f92..9cc786d 100644 --- a/views/mixins/_editorialFeatures.pug +++ b/views/mixins/_editorialFeatures.pug @@ -11,7 +11,7 @@ mixin editorialFeatures(entry) href=`https://app.contentful.com/spaces/${settings.spaceId}/entries/${entry.sys.id}` target='_blank' rel='noopener' - ) Edit in the web app + ) #{translate('editInTheWebAppLabel', currentLocale.code)} .editorial-features__hint-wrapper svg.editorial-features__hint-icon use(xlink:href='/icons/icons.svg#info')