diff options
author | Brandon Labuschagne <blabuschagne@gitlab.com> | 2019-05-24 15:51:02 +0200 |
---|---|---|
committer | Brandon Labuschagne <blabuschagne@gitlab.com> | 2019-05-27 10:42:07 +0200 |
commit | 0baf42465e5d572491ddf42ad6e6467e9a4b7bdf (patch) | |
tree | 6fff14e4a700f4acd4b9fd43a8da33ef7f580989 | |
parent | 348d779beab593e0e852f5a4d285ea58db75a048 (diff) | |
download | gitlab-ce-js-i18n-board-store.tar.gz |
I18N boards store directoryjs-i18n-board-store
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
-rw-r--r-- | app/assets/javascripts/boards/stores/actions.js | 4 | ||||
-rw-r--r-- | app/assets/javascripts/boards/stores/mutations.js | 3 | ||||
-rw-r--r-- | 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 "" |