Skip to content

Commit

Permalink
[Follow-up] Fix extraction script (#4895) (#4998)
Browse files Browse the repository at this point in the history
* fix-script
* fix additional script errors

---------


(cherry picked from commit 4e1c370)

Signed-off-by: Sirazh Gabdullin <[email protected]>
Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
  • Loading branch information
1 parent 56f77e0 commit ae37ab8
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ export function useQueryActions(anchorId: string, indexPattern: IndexPattern) {
}));
}
toastNotifications.addDanger({
title: i18n.translate('discover.context.unableToLoadDocumentDescription', {
title: i18n.translate('discover.context.unableToLoadSurroundingDocumentDescription', {
defaultMessage: 'Unable to fetch surrounding documents',
}),
text: 'fail',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ export function SingleDocApp() {
...getRootBreadcrumbs(),
{
text: i18n.translate('discover.single.breadcrumb', {
defaultMessage: `${index}#${docId}`,
defaultMessage: '{index}#{docId}',
values: {
index,
docId,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -76,9 +76,9 @@ export function resolveIndexPattern(

if (stateVal && !stateValFound) {
const warningTitle = i18n.translate('discover.valueIsNotConfiguredIndexPatternIDWarningTitle', {
defaultMessage: '{stateVal} is not a configured index pattern ID',
defaultMessage: '{id} is not a configured index pattern ID',
values: {
stateVal: `"${stateVal}"`,
id: `"${stateVal}"`,
},
});

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ export const createLineVegaSpecFn = (
name: 'line_vega_spec',
type: 'string',
inputTypes: ['opensearch_dashboards_datatable'],
help: i18n.translate('visTypeVega.function.help', {
help: i18n.translate('visTypeVega.function.helpSpec', {
defaultMessage: 'Construct line vega spec',
}),
args: {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -577,7 +577,8 @@ export class VisualizeEmbeddable
const { toasts } = getNotifications();
toasts.addError(err, {
title: i18n.translate('visualizations.renderVisTitle', {
defaultMessage: `Error loading data on the ${this.vis.title} chart`,
defaultMessage: 'Error loading data on the {visTitle} chart',
values: { visTitle: this.vis.title },
}),
toastMessage: ' ',
id: this.id,
Expand Down

0 comments on commit ae37ab8

Please sign in to comment.