Commit a4767253 authored by Fatih Acet's avatar Fatih Acet

Merge branch 'ee-js-i18n-javascripts-s' into 'master'

i18i EE JS files in directories starting with s

See merge request gitlab-org/gitlab-ee!13491
parents c792485f ed2c8d07
import { s__ } from '~/locale';
export const SEVERITY_LEVELS = {
critical: 'Critical',
high: 'High',
medium: 'Medium',
low: 'Low',
unknown: 'Unknown',
info: 'Info',
undefined: 'Undefined',
critical: s__('severity|Critical'),
high: s__('severity|High'),
medium: s__('severity|Medium'),
low: s__('severity|Low'),
unknown: s__('severity|Unknown'),
info: s__('severity|Info'),
undefined: s__('severity|Undefined'),
};
export const CONFIDENCE_LEVELS = {
confirmed: 'Confirmed',
high: 'High',
medium: 'Medium',
low: 'Low',
unknown: 'Unknown',
ignore: 'Ignore',
experimental: 'Experimental',
undefined: 'Undefined',
confirmed: s__('confidence|Confirmed'),
high: s__('confidence|High'),
medium: s__('confidence|Medium'),
low: s__('confidence|Low'),
unknown: s__('confidence|Unknown'),
ignore: s__('confidence|Ignore'),
experimental: s__('confidence|Experimental'),
undefined: s__('confidence|Undefined'),
};
export const REPORT_TYPES = {
......
import { SEVERITY_LEVELS, CONFIDENCE_LEVELS, REPORT_TYPES, BASE_FILTERS } from './constants';
import { s__ } from '~/locale';
const optionsObjectToArray = obj => Object.entries(obj).map(([id, name]) => ({ id, name }));
export default () => ({
filters: [
{
name: 'Severity',
name: s__('SecurityDashboard|Severity'),
id: 'severity',
options: [BASE_FILTERS.severity, ...optionsObjectToArray(SEVERITY_LEVELS)],
selection: new Set(['all']),
},
{
name: 'Confidence',
name: s__('SecurityDashboard|Confidence'),
id: 'confidence',
options: [BASE_FILTERS.confidence, ...optionsObjectToArray(CONFIDENCE_LEVELS)],
selection: new Set(['all']),
},
{
name: 'Report type',
name: s__('SecurityDashboard|Report type'),
id: 'report_type',
options: [BASE_FILTERS.report_type, ...optionsObjectToArray(REPORT_TYPES)],
selection: new Set(['all']),
},
{
name: 'Project',
name: s__('SecurityDashboard|Project'),
id: 'project_id',
options: [BASE_FILTERS.project_id],
selection: new Set(['all']),
......
import Vue from 'vue';
import { s__ } from '~/locale';
import { s__, __ } from '~/locale';
import { visitUrl } from '~/lib/utils/url_utility';
import * as types from './mutation_types';
import { DAYS } from './constants';
......@@ -156,7 +156,7 @@ export default {
[types.RECEIVE_CREATE_ISSUE_ERROR](state) {
state.isCreatingIssue = false;
Vue.set(state.modal, 'isCreatingNewIssue', false);
Vue.set(state.modal, 'error', 'There was an error creating the issue');
Vue.set(state.modal, 'error', __('There was an error creating the issue'));
},
[types.REQUEST_DISMISS_VULNERABILITY](state) {
state.isDismissingVulnerability = true;
......
......@@ -11459,12 +11459,24 @@ msgstr ""
msgid "SecurityDashboard| The security dashboard displays the latest security report. Use it to find and fix vulnerabilities."
msgstr ""
msgid "SecurityDashboard|Confidence"
msgstr ""
msgid "SecurityDashboard|Monitor vulnerabilities in your code"
msgstr ""
msgid "SecurityDashboard|Pipeline %{pipelineLink} triggered"
msgstr ""
msgid "SecurityDashboard|Project"
msgstr ""
msgid "SecurityDashboard|Report type"
msgstr ""
msgid "SecurityDashboard|Severity"
msgstr ""
msgid "See metrics"
msgstr ""
......@@ -13113,6 +13125,9 @@ msgstr ""
msgid "There was an error adding a todo."
msgstr ""
msgid "There was an error creating the issue"
msgstr ""
msgid "There was an error deleting the todo."
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