Skip to content

Commit 4611c7f

Browse files
authored
[Fleet] Rename ingestManager translations fleet (#81837) (#81895)
1 parent a395952 commit 4611c7f

File tree

91 files changed

+1828
-1977
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

91 files changed

+1828
-1977
lines changed

x-pack/.i18nrc.json

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
"xpack.idxMgmt": "plugins/index_management",
2828
"xpack.indexLifecycleMgmt": "plugins/index_lifecycle_management",
2929
"xpack.infra": "plugins/infra",
30-
"xpack.ingestManager": "plugins/ingest_manager",
30+
"xpack.fleet": "plugins/ingest_manager",
3131
"xpack.ingestPipelines": "plugins/ingest_pipelines",
3232
"xpack.lens": "plugins/lens",
3333
"xpack.licenseMgmt": "plugins/license_management",
@@ -56,9 +56,7 @@
5656
"xpack.watcher": "plugins/watcher",
5757
"xpack.observability": "plugins/observability"
5858
},
59-
"exclude": [
60-
"examples"
61-
],
59+
"exclude": ["examples"],
6260
"translations": [
6361
"plugins/translations/translations/zh-CN.json",
6462
"plugins/translations/translations/ja-JP.json"

x-pack/plugins/ingest_manager/common/services/is_valid_namespace.ts

Lines changed: 6 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -12,26 +12,23 @@ export function isValidNamespace(namespace: string): { valid: boolean; error?: s
1212
if (!namespace.trim()) {
1313
return {
1414
valid: false,
15-
error: i18n.translate('xpack.ingestManager.namespaceValidation.requiredErrorMessage', {
15+
error: i18n.translate('xpack.fleet.namespaceValidation.requiredErrorMessage', {
1616
defaultMessage: 'Namespace is required',
1717
}),
1818
};
1919
} else if (namespace !== namespace.toLowerCase()) {
2020
return {
2121
valid: false,
22-
error: i18n.translate('xpack.ingestManager.namespaceValidation.lowercaseErrorMessage', {
22+
error: i18n.translate('xpack.fleet.namespaceValidation.lowercaseErrorMessage', {
2323
defaultMessage: 'Namespace must be lowercase',
2424
}),
2525
};
2626
} else if (/[\*\\/\?"<>|\s,#:]+/.test(namespace)) {
2727
return {
2828
valid: false,
29-
error: i18n.translate(
30-
'xpack.ingestManager.namespaceValidation.invalidCharactersErrorMessage',
31-
{
32-
defaultMessage: 'Namespace contains invalid characters',
33-
}
34-
),
29+
error: i18n.translate('xpack.fleet.namespaceValidation.invalidCharactersErrorMessage', {
30+
defaultMessage: 'Namespace contains invalid characters',
31+
}),
3532
};
3633
}
3734
// Node.js doesn't have Blob, and browser doesn't have Buffer :)
@@ -41,7 +38,7 @@ export function isValidNamespace(namespace: string): { valid: boolean; error?: s
4138
) {
4239
return {
4340
valid: false,
44-
error: i18n.translate('xpack.ingestManager.namespaceValidation.tooLongErrorMessage', {
41+
error: i18n.translate('xpack.fleet.namespaceValidation.tooLongErrorMessage', {
4542
defaultMessage: 'Namespace cannot be more than 100 bytes',
4643
}),
4744
};

x-pack/plugins/ingest_manager/public/applications/ingest_manager/components/alpha_flyout.tsx

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ export const AlphaFlyout: React.FunctionComponent<Props> = ({ onClose }) => {
2727
<EuiTitle size="m">
2828
<h2 id="AlphaMessagingFlyoutTitle">
2929
<FormattedMessage
30-
id="xpack.ingestManager.alphaMessaging.flyoutTitle"
30+
id="xpack.fleet.alphaMessaging.flyoutTitle"
3131
defaultMessage="About this release"
3232
/>
3333
</h2>
@@ -37,13 +37,13 @@ export const AlphaFlyout: React.FunctionComponent<Props> = ({ onClose }) => {
3737
<EuiText size="m">
3838
<p>
3939
<FormattedMessage
40-
id="xpack.ingestManager.alphaMessaging.introText"
40+
id="xpack.fleet.alphaMessaging.introText"
4141
defaultMessage="Fleet is under active development and is not intended for use in production environments. This beta release is designed for users to test and offer feedback about Fleet and the new Elastic Agent. This plugin is not subject to the support SLA."
4242
/>
4343
</p>
4444
<p>
4545
<FormattedMessage
46-
id="xpack.ingestManager.alphaMessaging.feedbackText"
46+
id="xpack.fleet.alphaMessaging.feedbackText"
4747
defaultMessage="Read our {docsLink} or go to our {forumLink} for questions or feedback."
4848
values={{
4949
docsLink: (
@@ -53,15 +53,15 @@ export const AlphaFlyout: React.FunctionComponent<Props> = ({ onClose }) => {
5353
target="_blank"
5454
>
5555
<FormattedMessage
56-
id="xpack.ingestManager.alphaMessaging.docsLink"
56+
id="xpack.fleet.alphaMessaging.docsLink"
5757
defaultMessage="documentation"
5858
/>
5959
</EuiLink>
6060
),
6161
forumLink: (
6262
<EuiLink href="https://ela.st/ingest-manager-forum" external target="_blank">
6363
<FormattedMessage
64-
id="xpack.ingestManager.alphaMessaging.forumLink"
64+
id="xpack.fleet.alphaMessaging.forumLink"
6565
defaultMessage="Discuss forum"
6666
/>
6767
</EuiLink>
@@ -74,7 +74,7 @@ export const AlphaFlyout: React.FunctionComponent<Props> = ({ onClose }) => {
7474
<EuiFlyoutFooter>
7575
<EuiButtonEmpty onClick={onClose} flush="left">
7676
<FormattedMessage
77-
id="xpack.ingestManager.alphaMessging.closeFlyoutLabel"
77+
id="xpack.fleet.alphaMessging.closeFlyoutLabel"
7878
defaultMessage="Close"
7979
/>
8080
</EuiButtonEmpty>

x-pack/plugins/ingest_manager/public/applications/ingest_manager/components/alpha_messaging.tsx

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -26,20 +26,17 @@ export const AlphaMessaging: React.FC<{}> = () => {
2626
<Message>
2727
<p>
2828
<strong>
29-
<FormattedMessage
30-
id="xpack.ingestManager.alphaMessageTitle"
31-
defaultMessage="Beta release"
32-
/>
29+
<FormattedMessage id="xpack.fleet.alphaMessageTitle" defaultMessage="Beta release" />
3330
</strong>
3431
{' – '}
3532
<FormattedMessage
36-
id="xpack.ingestManager.alphaMessageDescription"
33+
id="xpack.fleet.alphaMessageDescription"
3734
defaultMessage="Fleet is not
3835
recommended for production environments."
3936
/>{' '}
4037
<EuiLink color="subdued" onClick={() => setIsAlphaFlyoutOpen(true)}>
4138
<FormattedMessage
42-
id="xpack.ingestManager.alphaMessageLinkText"
39+
id="xpack.fleet.alphaMessageLinkText"
4340
defaultMessage="See more details."
4441
/>
4542
</EuiLink>

x-pack/plugins/ingest_manager/public/applications/ingest_manager/components/context_menu_actions.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ export const ContextMenuActions = React.memo<Props>(({ button, onChange, isOpen,
6363
<EuiButtonIcon
6464
iconType="boxesHorizontal"
6565
onClick={handleToggleMenu}
66-
aria-label={i18n.translate('xpack.ingestManager.genericActionsMenuText', {
66+
aria-label={i18n.translate('xpack.fleet.genericActionsMenuText', {
6767
defaultMessage: 'Open',
6868
})}
6969
/>

x-pack/plugins/ingest_manager/public/applications/ingest_manager/components/enrollment_instructions/manual/index.tsx

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -38,15 +38,15 @@ export const ManualInstructions: React.FunctionComponent<Props> = ({
3838
<>
3939
<EuiText>
4040
<FormattedMessage
41-
id="xpack.ingestManager.enrollmentInstructions.descriptionText"
41+
id="xpack.fleet.enrollmentInstructions.descriptionText"
4242
defaultMessage="From the agent directory, run the appropriate command to install, enroll, and start an Elastic Agent. You can reuse these commands to set up agents on more than one host. Requires administrator privileges."
4343
/>
4444
</EuiText>
4545
<EuiSpacer size="l" />
4646
<EuiTitle size="xs">
4747
<h4>
4848
<FormattedMessage
49-
id="xpack.ingestManager.enrollmentInstructions.linuxMacOSTitle"
49+
id="xpack.fleet.enrollmentInstructions.linuxMacOSTitle"
5050
defaultMessage="Linux, macOS"
5151
/>
5252
</h4>
@@ -59,7 +59,7 @@ export const ManualInstructions: React.FunctionComponent<Props> = ({
5959
<EuiTitle size="xs">
6060
<h4>
6161
<FormattedMessage
62-
id="xpack.ingestManager.enrollmentInstructions.windowsTitle"
62+
id="xpack.fleet.enrollmentInstructions.windowsTitle"
6363
defaultMessage="Windows"
6464
/>
6565
</h4>
@@ -71,7 +71,7 @@ export const ManualInstructions: React.FunctionComponent<Props> = ({
7171
<EuiSpacer size="l" />
7272
<EuiText>
7373
<FormattedMessage
74-
id="xpack.ingestManager.enrollmentInstructions.moreInstructionsText"
74+
id="xpack.fleet.enrollmentInstructions.moreInstructionsText"
7575
defaultMessage="See the {link} for more instructions and options."
7676
values={{
7777
link: (
@@ -81,7 +81,7 @@ export const ManualInstructions: React.FunctionComponent<Props> = ({
8181
href="https://www.elastic.co/guide/en/ingest-management/current/elastic-agent-installation-configuration.html"
8282
>
8383
<FormattedMessage
84-
id="xpack.ingestManager.enrollmentInstructions.moreInstructionsLink"
84+
id="xpack.fleet.enrollmentInstructions.moreInstructionsLink"
8585
defaultMessage="Elastic Agent docs"
8686
/>
8787
</EuiLink>

x-pack/plugins/ingest_manager/public/applications/ingest_manager/components/home_integration/tutorial_directory_header_link.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ const TutorialDirectoryHeaderLink: TutorialDirectoryHeaderLinkComponent = memo((
3333
return hasIngestManager && noticeState.settingsDataLoaded && noticeState.hasSeenNotice ? (
3434
<EuiButtonEmpty size="s" iconType="link" flush="right" href={getHref('overview')}>
3535
<FormattedMessage
36-
id="xpack.ingestManager.homeIntegration.tutorialDirectory.fleetAppButtonText"
36+
id="xpack.fleet.homeIntegration.tutorialDirectory.fleetAppButtonText"
3737
defaultMessage="Try Fleet Beta"
3838
/>
3939
</EuiButtonEmpty>

x-pack/plugins/ingest_manager/public/applications/ingest_manager/components/home_integration/tutorial_directory_notice.tsx

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -60,13 +60,13 @@ const TutorialDirectoryNotice: TutorialDirectoryNoticeComponent = memo(() => {
6060
iconType="cheer"
6161
title={
6262
<FormattedMessage
63-
id="xpack.ingestManager.homeIntegration.tutorialDirectory.noticeTitle"
63+
id="xpack.fleet.homeIntegration.tutorialDirectory.noticeTitle"
6464
defaultMessage="{newPrefix} Elastic Agent and Fleet Beta"
6565
values={{
6666
newPrefix: (
6767
<strong>
6868
<FormattedMessage
69-
id="xpack.ingestManager.homeIntegration.tutorialDirectory.noticeTitle.newPrefix"
69+
id="xpack.fleet.homeIntegration.tutorialDirectory.noticeTitle.newPrefix"
7070
defaultMessage="New:"
7171
/>
7272
</strong>
@@ -77,15 +77,15 @@ const TutorialDirectoryNotice: TutorialDirectoryNoticeComponent = memo(() => {
7777
>
7878
<p>
7979
<FormattedMessage
80-
id="xpack.ingestManager.homeIntegration.tutorialDirectory.noticeText"
80+
id="xpack.fleet.homeIntegration.tutorialDirectory.noticeText"
8181
defaultMessage="The Elastic Agent provides a simple, unified way to add monitoring for logs, metrics, and other types of data to your hosts.
8282
You no longer need to install multiple Beats and other agents, which makes it easier and faster to deploy policies across your infrastructure.
8383
For more information, read our {blogPostLink}."
8484
values={{
8585
blogPostLink: (
8686
<EuiLink href="https://ela.st/ingest-manager-announcement" external target="_blank">
8787
<FormattedMessage
88-
id="xpack.ingestManager.homeIntegration.tutorialDirectory.noticeText.blogPostLink"
88+
id="xpack.fleet.homeIntegration.tutorialDirectory.noticeText.blogPostLink"
8989
defaultMessage="announcement blog post"
9090
/>
9191
</EuiLink>
@@ -98,7 +98,7 @@ const TutorialDirectoryNotice: TutorialDirectoryNoticeComponent = memo(() => {
9898
<div>
9999
<EuiButton size="s" href={getHref('overview')}>
100100
<FormattedMessage
101-
id="xpack.ingestManager.homeIntegration.tutorialDirectory.fleetAppButtonText"
101+
id="xpack.fleet.homeIntegration.tutorialDirectory.fleetAppButtonText"
102102
defaultMessage="Try Fleet Beta"
103103
/>
104104
</EuiButton>
@@ -113,7 +113,7 @@ const TutorialDirectoryNotice: TutorialDirectoryNoticeComponent = memo(() => {
113113
}}
114114
>
115115
<FormattedMessage
116-
id="xpack.ingestManager.homeIntegration.tutorialDirectory.dismissNoticeButtonText"
116+
id="xpack.fleet.homeIntegration.tutorialDirectory.dismissNoticeButtonText"
117117
defaultMessage="Dismiss message"
118118
/>
119119
</EuiButtonEmpty>

x-pack/plugins/ingest_manager/public/applications/ingest_manager/components/home_integration/tutorial_module_notice.tsx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -26,14 +26,14 @@ const TutorialModuleNotice: TutorialModuleNoticeComponent = memo(({ moduleName }
2626
<EuiText>
2727
<p>
2828
<FormattedMessage
29-
id="xpack.ingestManager.homeIntegration.tutorialModule.noticeText"
29+
id="xpack.fleet.homeIntegration.tutorialModule.noticeText"
3030
defaultMessage="{notePrefix} a newer version of this module is {availableAsIntegrationLink} in Fleet Beta.
3131
To learn more about agent policies and the new Elastic Agent, read our {blogPostLink}."
3232
values={{
3333
notePrefix: (
3434
<strong>
3535
<FormattedMessage
36-
id="xpack.ingestManager.homeIntegration.tutorialModule.noticeText.notePrefix"
36+
id="xpack.fleet.homeIntegration.tutorialModule.noticeText.notePrefix"
3737
defaultMessage="Note:"
3838
/>
3939
</strong>
@@ -45,7 +45,7 @@ const TutorialModuleNotice: TutorialModuleNoticeComponent = memo(({ moduleName }
4545
})}
4646
>
4747
<FormattedMessage
48-
id="xpack.ingestManager.homeIntegration.tutorialModule.noticeText.integrationLink"
48+
id="xpack.fleet.homeIntegration.tutorialModule.noticeText.integrationLink"
4949
defaultMessage="available as an Integration"
5050
/>
5151
</EuiLink>
@@ -57,7 +57,7 @@ const TutorialModuleNotice: TutorialModuleNoticeComponent = memo(({ moduleName }
5757
target="_blank"
5858
>
5959
<FormattedMessage
60-
id="xpack.ingestManager.homeIntegration.tutorialModule.noticeText.blogPostLink"
60+
id="xpack.fleet.homeIntegration.tutorialModule.noticeText.blogPostLink"
6161
defaultMessage="announcement blog post"
6262
/>
6363
</EuiLink>

x-pack/plugins/ingest_manager/public/applications/ingest_manager/components/search_bar.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ export const SearchBar: React.FunctionComponent<Props> = ({
6161
icon={'search'}
6262
placeholder={
6363
placeholder ||
64-
i18n.translate('xpack.ingestManager.defaultSearchPlaceholderText', {
64+
i18n.translate('xpack.fleet.defaultSearchPlaceholderText', {
6565
defaultMessage: 'Search',
6666
})
6767
}

0 commit comments

Comments
 (0)