summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTim Zallmann <tzallmann@gitlab.com>2019-04-29 18:09:12 +0000
committerTim Zallmann <tzallmann@gitlab.com>2019-04-29 18:09:12 +0000
commit94e94295c78e026b725dc5fb1cb961fa06220340 (patch)
treec949fc5e07e7c62355a34eb3fafdcd01ad31df97
parentadc567577aa4a786b32febb1245ff9eb0420d22f (diff)
parentdb2eefba1d7cb4b1bcab5f6efcd7d855ddcfe118 (diff)
downloadgitlab-ce-94e94295c78e026b725dc5fb1cb961fa06220340.tar.gz
Merge branch 'js-i18n-vue-shared' into 'master'
Internationalisation of vue_shared directory See merge request gitlab-org/gitlab-ce!27751
-rw-r--r--app/assets/javascripts/vue_shared/components/content_viewer/lib/viewer_utils.js4
-rw-r--r--locale/gitlab.pot3
2 files changed, 6 insertions, 1 deletions
diff --git a/app/assets/javascripts/vue_shared/components/content_viewer/lib/viewer_utils.js b/app/assets/javascripts/vue_shared/components/content_viewer/lib/viewer_utils.js
index f01a51da0b3..ba63683f5c0 100644
--- a/app/assets/javascripts/vue_shared/components/content_viewer/lib/viewer_utils.js
+++ b/app/assets/javascripts/vue_shared/components/content_viewer/lib/viewer_utils.js
@@ -1,10 +1,12 @@
+import { __ } from '~/locale';
+
const viewers = {
image: {
id: 'image',
},
markdown: {
id: 'markdown',
- previewTitle: 'Preview Markdown',
+ previewTitle: __('Preview Markdown'),
},
};
diff --git a/locale/gitlab.pot b/locale/gitlab.pot
index 78d50c74eac..ada9229553c 100644
--- a/locale/gitlab.pot
+++ b/locale/gitlab.pot
@@ -6688,6 +6688,9 @@ msgstr ""
msgid "Preview"
msgstr ""
+msgid "Preview Markdown"
+msgstr ""
+
msgid "Preview changes"
msgstr ""