Commit 828b9ed3 authored by Ezekiel Kigbo's avatar Ezekiel Kigbo

Merge branch 'refactore-translations-autofix-second-iteration' into 'master'

Refactor Translations for Autofix Help Text

See merge request gitlab-org/gitlab!50423
parents fd79577a 2c62cef3
<script> <script>
import { GlBadge, GlPopover, GlIcon } from '@gitlab/ui'; import { GlBadge, GlPopover, GlIcon } from '@gitlab/ui';
import { s__ } from '~/locale';
const ICONCOLOR = { const ICONCOLOR = {
opened: 'gl-text-green-500', opened: 'gl-text-green-500',
...@@ -14,6 +15,9 @@ const ICON = { ...@@ -14,6 +15,9 @@ const ICON = {
}; };
export default { export default {
i18n: {
AUTO_FIX: s__('AutoRemediation|Auto-fix'),
},
components: { components: {
GlBadge, GlBadge,
GlIcon, GlIcon,
...@@ -37,6 +41,7 @@ export default { ...@@ -37,6 +41,7 @@ export default {
</script> </script>
<template> <template>
<!-- eslint-disable @gitlab/vue-require-i18n-strings -->
<div ref="popover" data-testid="vulnerability-solutions-bulb"> <div ref="popover" data-testid="vulnerability-solutions-bulb">
<gl-badge ref="badge" variant="neutral" icon="merge-request" /> <gl-badge ref="badge" variant="neutral" icon="merge-request" />
<gl-popover <gl-popover
...@@ -66,9 +71,9 @@ export default { ...@@ -66,9 +71,9 @@ export default {
}}<span }}<span
v-if="mergeRequest.securityAutoFix" v-if="mergeRequest.securityAutoFix"
data-testid="vulnerability-solutions-popover-link-autofix" data-testid="vulnerability-solutions-popover-link-autofix"
>{{ s__('AutoRemediation|: Auto-fix') }}</span >{{ `: ${$options.i18n.AUTO_FIX}` }}</span
></span
> >
</span>
</a> </a>
</li> </li>
</ul> </ul>
......
...@@ -4190,7 +4190,7 @@ msgstr "" ...@@ -4190,7 +4190,7 @@ msgstr ""
msgid "AutoRemediation|%{mrsCount} ready for review" msgid "AutoRemediation|%{mrsCount} ready for review"
msgstr "" msgstr ""
msgid "AutoRemediation|: Auto-fix" msgid "AutoRemediation|Auto-fix"
msgstr "" msgstr ""
msgid "AutoRemediation|Auto-fix solutions" 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