summaryrefslogtreecommitdiff
path: root/app
diff options
context:
space:
mode:
authorBrandon Labuschagne <blabuschagne@gitlab.com>2019-04-29 18:09:11 +0000
committerTim Zallmann <tzallmann@gitlab.com>2019-04-29 18:09:11 +0000
commitdb2eefba1d7cb4b1bcab5f6efcd7d855ddcfe118 (patch)
treec949fc5e07e7c62355a34eb3fafdcd01ad31df97 /app
parentadc567577aa4a786b32febb1245ff9eb0420d22f (diff)
downloadgitlab-ce-db2eefba1d7cb4b1bcab5f6efcd7d855ddcfe118.tar.gz
Internationalisation of vue_shared directory
This is one of many MRs opened in order to improve the overall internationalisation of the GitLab codebase. This commit only targets the Vanilla JS files. i18n documentation https://docs.gitlab.com/ee/development/i18n/externalization.html
Diffstat (limited to 'app')
-rw-r--r--app/assets/javascripts/vue_shared/components/content_viewer/lib/viewer_utils.js4
1 files changed, 3 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'),
},
};