Skip to content

Commit

Permalink
i18n
Browse files Browse the repository at this point in the history
  • Loading branch information
mbondyra committed Sep 2, 2021
1 parent cfabf1a commit bd80a2b
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions x-pack/plugins/lens/public/embeddable/expression_wrapper.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,7 @@ const SavedObjectConflictMessage = ({ json }: { json: string }) => {
<>
<FormattedMessage
id="xpack.lens.embeddable.legacyURLConflict.longMessage"
defaultMessage="You have encountered a legacy URL alias conflict. See the {documentationLink} for more information."
defaultMessage=" A {documentationLink} is also associated with this object."
values={{
documentationLink: (
<EuiLink
Expand All @@ -185,7 +185,7 @@ const SavedObjectConflictMessage = ({ json }: { json: string }) => {
target="_blank"
>
{i18n.translate('xpack.lens.embeddable.legacyURLConflict.documentationLinkText', {
defaultMessage: 'documentation',
defaultMessage: 'legacy URL',
})}
</EuiLink>
),
Expand All @@ -195,7 +195,7 @@ const SavedObjectConflictMessage = ({ json }: { json: string }) => {
{expandError ? (
<EuiCallOut
title={i18n.translate('xpack.lens.embeddable.legacyURLConflict.expandErrorText', {
defaultMessage: `Found a specified object and an alias for the same URL. You can disable the alias to resolve this error: {json}`,
defaultMessage: `An object and an alias have the same URL. Disable the alias to resolve this error: {json}`,
values: { json },
})}
color="danger"
Expand All @@ -214,7 +214,7 @@ const SavedObjectConflictMessage = ({ json }: { json: string }) => {

export const savedObjectConflictError = (json: string): ErrorMessage => ({
shortMessage: i18n.translate('xpack.lens.embeddable.legacyURLConflict.shortMessage', {
defaultMessage: 'Legacy URL Alias Conflict',
defaultMessage: `You've encountered a URL conflict`,
}),
longMessage: <SavedObjectConflictMessage json={json} />,
});
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ export const getPersisted = async ({
);
await spaces.ui.redirectLegacyUrl(
newPath,
i18n.translate('xpack.lens.appName', {
i18n.translate('xpack.lens.legacyUrlConflict.objectNoun', {
defaultMessage: 'Lens visualization',
})
);
Expand Down

0 comments on commit bd80a2b

Please sign in to comment.