Move translations to options

parent f7726c3e
<script>
import {s__} from '~/locale';
import { GlAlert, GlSprintf, GlLink } from '@gitlab/ui';
import { helpPagePath } from '~/helpers/help_page_helper';
......@@ -12,23 +13,26 @@ export default {
dastSiteValidationDocsPath: helpPagePath('user/application_security/dast/index', {
anchor: 'site-profile-validation',
}),
i18n: {
title: s__('DastProfiles|You cannot run an active scan against an unvalidated site.'),
primaryButtonText: s__('DastProfiles|Manage site profiles'),
message: s__(
'DastProfiles|You can either choose a passive scan or validate the target site from the site profile management page. %{docsLinkStart}Learn more about site validation.%{docsLinkEnd}',
)
}
};
</script>
<template>
<gl-alert
:title="s__('DastProfiles|You cannot run an active scan against an unvalidated site.')"
:title="$options.i18n.title"
:dismissible="false"
:primary-button-text="s__('DastProfiles|Manage site profiles')"
:primary-button-text="$options.i18n.primaryButtonText"
:primary-button-link="siteProfilesLibraryPath"
variant="danger"
>
<gl-sprintf
:message="
s__(
'DastProfiles|You can either choose a passive scan or validate the target site from the site profile management page. %{docsLinkStart}Learn more about site validation.%{docsLinkEnd}',
)
"
:message="$options.i18n.message"
>
<template #docsLink="{ content }">
<gl-link :href="$options.dastSiteValidationDocsPath">{{ content }}</gl-link>
......
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