Commit 2c62cef3 authored by Jannik Lehmann's avatar Jannik Lehmann Committed by Ezekiel Kigbo

Refactor Translations for Autofix Help Text

This commit refactors the dealing with translations
for the Autofix help Text on the Autofix Indicator
in the Vulnerability List, this feature is currently hidden
behind the Feature Flag
secure_vulnerability_autofix_indicator
parent 0a76163b
<script>
import { GlBadge, GlPopover, GlIcon } from '@gitlab/ui';
import { s__ } from '~/locale';
const ICONCOLOR = {
opened: 'gl-text-green-500',
......@@ -14,6 +15,9 @@ const ICON = {
};
export default {
i18n: {
AUTO_FIX: s__('AutoRemediation|Auto-fix'),
},
components: {
GlBadge,
GlIcon,
......@@ -37,6 +41,7 @@ export default {
</script>
<template>
<!-- eslint-disable @gitlab/vue-require-i18n-strings -->
<div ref="popover" data-testid="vulnerability-solutions-bulb">
<gl-badge ref="badge" variant="neutral" icon="merge-request" />
<gl-popover
......@@ -66,9 +71,9 @@ export default {
}}<span
v-if="mergeRequest.securityAutoFix"
data-testid="vulnerability-solutions-popover-link-autofix"
>{{ s__('AutoRemediation|: Auto-fix') }}</span
></span
>
>{{ `: ${$options.i18n.AUTO_FIX}` }}</span
>
</span>
</a>
</li>
</ul>
......
......@@ -4184,7 +4184,7 @@ msgstr ""
msgid "AutoRemediation|%{mrsCount} ready for review"
msgstr ""
msgid "AutoRemediation|: Auto-fix"
msgid "AutoRemediation|Auto-fix"
msgstr ""
msgid "AutoRemediation|Auto-fix solutions"
......
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