Skip to content

Commit

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

---------

Signed-off-by: Sirazh Gabdullin <[email protected]>
  • Loading branch information
curq authored Sep 13, 2023
1 parent 620624c commit 4e1c370
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 4e1c370

Please sign in to comment.