summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrandon Labuschagne <blabuschagne@gitlab.com>2019-05-24 15:51:02 +0200
committerBrandon Labuschagne <blabuschagne@gitlab.com>2019-05-27 10:42:07 +0200
commit0baf42465e5d572491ddf42ad6e6467e9a4b7bdf (patch)
tree6fff14e4a700f4acd4b9fd43a8da33ef7f580989
parent348d779beab593e0e852f5a4d285ea58db75a048 (diff)
downloadgitlab-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.js4
-rw-r--r--app/assets/javascripts/boards/stores/mutations.js3
-rw-r--r--locale/gitlab.pot3
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 ""