-
Notifications
You must be signed in to change notification settings - Fork 8.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Canvas] i18n for page manager, page preview, and shape preview #46865
[Canvas] i18n for page manager, page preview, and shape preview #46865
Conversation
Pinging @elastic/kibana-canvas |
💚 Build Succeeded |
@elasticmachine merge upstream |
💔 Build Failed |
retest |
💚 Build Succeeded |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Couple of things to clean up, but should be good to go after that.
@@ -27,15 +31,19 @@ export const PageControls = ({ pageId, onDelete, onDuplicate }) => { | |||
> | |||
<EuiFlexItem grow={false}> | |||
<EuiToolTip content="Clone"> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ShapePreview: { | ||
getShapeErrorMessage: () => | ||
i18n.translate('xpack.canvas.shapePreview.shapeErrorMessage', { | ||
defaultMessage: 'An unexpected error occurred: the SVG was not parseable', |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
SVG should be a constant?
@@ -24,7 +28,7 @@ export const ShapePreview = ({ shape }: Props) => { | |||
.item(0); | |||
|
|||
if (!shapeSvg) { | |||
throw new Error('An unexpected error occurred: the SVG was not parseable'); | |||
throw new Error(strings.getShapeErrorMessage()); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do error messages like this need to be translated?
💔 Build Failed |
@elasticmachine merge upstream |
💚 Build Succeeded |
…tic#46865) * i18n for page manager, page preview, and shape preview * Addressing feedback * Forgot to remove ShapePreview
…tic#46865) * i18n for page manager, page preview, and shape preview * Addressing feedback * Forgot to remove ShapePreview
…ysens/kibana into console-fix-menu-actions-alignment * 'console-fix-menu-actions-alignment' of github.com:jloleysens/kibana: (59 commits) [Canvas] i18n for page manager, page preview, and shape preview (elastic#46865) [SIEM] hide siem data on empty string or _all (elastic#47166) [Uptime] Shim UI exports for new platform (elastic#44722) [Monitoring] Metricbeat Migration Wizard Tests (elastic#47139) [Logs UI] Support partitioned log rate results in API (elastic#46751) [APM] Remove beta badge from transaction breakdown (elastic#47163) test: 💍 convert Interpreter font function tests to Jest (elastic#47193) visualizations 👉 NP-ready (elastic#47142) [Uptime] Update pings chart colors (elastic#46780) Add scroll into view to avoid tooltip overlap (elastic#47106) Variety of quick a11y fixes (elastic#46569) [Graph] Empty workspace overlay (elastic#45547) [ML] Converts index and saved search selection to React (elastic#47117) [Uptime] Change default status filter in ping list to all on monitor page (elastic#47108) refactor: 💡 convert Interpreter .js -> .ts (elastic#44545) Add TypeScript rules to STYLEGUIDE [skip ci] (elastic#47125) chore(NA): fix logic behind cleaning x-pack node modules on build (elastic#47091) [SIEM] Update Settings Text (elastic#47147) Add KQL functionality in the find function of the saved objects (elastic#41136) [Maps] Add 'InjectedData' class and revise so File Upload Features are assigned to new InjectedData instances (elastic#46381) ...
Summary