Commit 41e9ea7b authored by Brandon Labuschagne's avatar Brandon Labuschagne

I18N EE dependecies actions file

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
parent de3489f1
......@@ -4,6 +4,7 @@ import { FETCH_ERROR_MESSAGE } from './constants';
import { isValidResponse } from './utils';
import * as types from './mutation_types';
import axios from '~/lib/utils/axios_utils';
import { __ } from '~/locale';
export const setDependenciesEndpoint = ({ commit }, endpoint) =>
commit(types.SET_DEPENDENCIES_ENDPOINT, endpoint);
......@@ -41,7 +42,7 @@ export const fetchDependencies = ({ state, dispatch }, params = {}) => {
if (isValidResponse(response)) {
dispatch('receiveDependenciesSuccess', response);
} else {
throw new Error('Invalid server response');
throw new Error(__('Invalid server response'));
}
})
.catch(error => {
......
......@@ -7194,6 +7194,9 @@ msgstr ""
msgid "Invalid repository path"
msgstr ""
msgid "Invalid server response"
msgstr ""
msgid "Invalid two-factor code."
msgstr ""
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment