Skip to content

Commit

Permalink
[lens] Fix build by updating saved objects and i18n (#39391)
Browse files Browse the repository at this point in the history
* [lens] Update location of saved objects code

* Update internatationalization

* Remove added file
  • Loading branch information
Wylie Conlon authored Jun 21, 2019
1 parent 4c69044 commit abed39a
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 8 deletions.
1 change: 1 addition & 0 deletions .i18nrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@
"xpack.indexLifecycleMgmt": "x-pack/legacy/plugins/index_lifecycle_management",
"xpack.infra": "x-pack/legacy/plugins/infra",
"xpack.kueryAutocomplete": "x-pack/legacy/plugins/kuery_autocomplete",
"xpack.lens": "x-pack/legacy/plugins/lens",
"xpack.licenseMgmt": "x-pack/legacy/plugins/license_management",
"xpack.maps": "x-pack/legacy/plugins/maps",
"xpack.ml": "x-pack/legacy/plugins/ml",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -75,35 +75,35 @@ export const minOperation = buildMetricOperation<MinIndexPatternColumn>(

export const maxOperation = buildMetricOperation<MaxIndexPatternColumn>(
'max',
i18n.translate('xpack.lens.indexPattern.min', {
i18n.translate('xpack.lens.indexPattern.max', {
defaultMessage: 'Maximum',
}),
name =>
i18n.translate('xpack.lens.indexPattern.minOf', {
i18n.translate('xpack.lens.indexPattern.maxOf', {
defaultMessage: 'Maximum of {name}',
values: { name },
})
);

export const averageOperation = buildMetricOperation<AvgIndexPatternColumn>(
'avg',
i18n.translate('xpack.lens.indexPattern.min', {
i18n.translate('xpack.lens.indexPattern.avg', {
defaultMessage: 'Average',
}),
name =>
i18n.translate('xpack.lens.indexPattern.minOf', {
i18n.translate('xpack.lens.indexPattern.avgOf', {
defaultMessage: 'Average of {name}',
values: { name },
})
);

export const sumOperation = buildMetricOperation<SumIndexPatternColumn>(
'sum',
i18n.translate('xpack.lens.indexPattern.min', {
i18n.translate('xpack.lens.indexPattern.sum', {
defaultMessage: 'Sum',
}),
name =>
i18n.translate('xpack.lens.indexPattern.minOf', {
i18n.translate('xpack.lens.indexPattern.sumOf', {
defaultMessage: 'Sum of {name}',
values: { name },
})
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,13 +20,13 @@ export const renameColumns: ExpressionFunction<
> = {
name: 'lens_rename_columns',
type: 'kibana_datatable',
help: i18n.translate('lens.functions.renameColumns.help', {
help: i18n.translate('xpack.lens.functions.renameColumns.help', {
defaultMessage: 'A helper to rename the columns of a datatable',
}),
args: {
idMap: {
types: ['string'],
help: i18n.translate('lens.functions.renameColumns.idMap.help', {
help: i18n.translate('xpack.lens.functions.renameColumns.idMap.help', {
defaultMessage:
'A JSON encoded object in which keys are the old column ids and values are the corresponding new ones. All other columns ids are kept.',
}),
Expand Down

0 comments on commit abed39a

Please sign in to comment.