Commit ed1f332b authored by Mike Greiling's avatar Mike Greiling

Merge branch 'ee-js-i18n-dependency-actions-file' into 'master'

I18N EE dependencies actions file

See merge request gitlab-org/gitlab-ee!14029
parents a1c5d844 41e9ea7b
......@@ -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