diff options
author | Brandon Labuschagne <blabuschagne@gitlab.com> | 2019-04-29 18:09:11 +0000 |
---|---|---|
committer | Tim Zallmann <tzallmann@gitlab.com> | 2019-04-29 18:09:11 +0000 |
commit | db2eefba1d7cb4b1bcab5f6efcd7d855ddcfe118 (patch) | |
tree | c949fc5e07e7c62355a34eb3fafdcd01ad31df97 | |
parent | adc567577aa4a786b32febb1245ff9eb0420d22f (diff) | |
download | gitlab-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
-rw-r--r-- | app/assets/javascripts/vue_shared/components/content_viewer/lib/viewer_utils.js | 4 | ||||
-rw-r--r-- | locale/gitlab.pot | 3 |
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 "" |