From 0baf42465e5d572491ddf42ad6e6467e9a4b7bdf Mon Sep 17 00:00:00 2001 From: Brandon Labuschagne Date: Fri, 24 May 2019 15:51:02 +0200 Subject: I18N boards store directory This is one of many MRs opened in order to improve the overall internationalisation of the GitLab codebase. This commit only targets Vanilla JS files. i18n documentation https://docs.gitlab.com/ee/development/i18n/externalization.html --- app/assets/javascripts/boards/stores/actions.js | 4 +++- app/assets/javascripts/boards/stores/mutations.js | 3 ++- locale/gitlab.pot | 3 +++ 3 files changed, 8 insertions(+), 2 deletions(-) diff --git a/app/assets/javascripts/boards/stores/actions.js b/app/assets/javascripts/boards/stores/actions.js index da82b52330a..51565c597e6 100644 --- a/app/assets/javascripts/boards/stores/actions.js +++ b/app/assets/javascripts/boards/stores/actions.js @@ -1,5 +1,7 @@ +import { __ } from '~/locale'; + const notImplemented = () => { - throw new Error('Not implemented!'); + throw new Error(__('Not implemented!')); }; export default { diff --git a/app/assets/javascripts/boards/stores/mutations.js b/app/assets/javascripts/boards/stores/mutations.js index 77ba68be07e..8e61b93e824 100644 --- a/app/assets/javascripts/boards/stores/mutations.js +++ b/app/assets/javascripts/boards/stores/mutations.js @@ -1,7 +1,8 @@ import * as mutationTypes from './mutation_types'; +import { __ } from '~/locale'; const notImplemented = () => { - throw new Error('Not implemented!'); + throw new Error(__('Not implemented!')); }; export default { diff --git a/locale/gitlab.pot b/locale/gitlab.pot index acebc86f900..3c88066d48d 100644 --- a/locale/gitlab.pot +++ b/locale/gitlab.pot @@ -6470,6 +6470,9 @@ msgstr "" msgid "Not found." msgstr "" +msgid "Not implemented!" +msgstr "" + msgid "Not now" msgstr "" -- cgit v1.2.1