diff options
author | Brandon Labuschagne <blabuschagne@gitlab.com> | 2019-05-24 16:51:02 +0300 |
---|---|---|
committer | Brandon Labuschagne <blabuschagne@gitlab.com> | 2019-05-27 11:42:07 +0300 |
commit | 0baf42465e5d572491ddf42ad6e6467e9a4b7bdf (patch) | |
tree | 6fff14e4a700f4acd4b9fd43a8da33ef7f580989 /app/assets | |
parent | 348d779beab593e0e852f5a4d285ea58db75a048 (diff) |
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
Diffstat (limited to 'app/assets')
-rw-r--r-- | app/assets/javascripts/boards/stores/actions.js | 4 | ||||
-rw-r--r-- | app/assets/javascripts/boards/stores/mutations.js | 3 |
2 files changed, 5 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 { |