mirror of
https://github.com/elastic/kibana.git
synced 2025-04-23 09:19:04 -04:00
[Canvas] Fixes i18n errors (#37565)
* Fixed i18n errors * Added canvas path to .i18nrc.json
This commit is contained in:
parent
182c329c7a
commit
cf3eab2753
7 changed files with 12 additions and 14 deletions
|
@ -24,6 +24,7 @@
|
|||
"kbnESQuery": "packages/kbn-es-query",
|
||||
"xpack.apm": "x-pack/plugins/apm",
|
||||
"xpack.beatsManagement": "x-pack/plugins/beats_management",
|
||||
"xpack.canvas": "x-pack/plugins/canvas",
|
||||
"xpack.crossClusterReplication": "x-pack/plugins/cross_cluster_replication",
|
||||
"xpack.dashboardMode": "x-pack/plugins/dashboard_mode",
|
||||
"xpack.graph": "x-pack/plugins/graph",
|
||||
|
@ -51,9 +52,7 @@
|
|||
"xpack.uptime": "x-pack/plugins/uptime",
|
||||
"xpack.watcher": "x-pack/plugins/watcher"
|
||||
},
|
||||
"exclude": [
|
||||
"src/legacy/ui/ui_render/ui_render_mixin.js"
|
||||
],
|
||||
"exclude": ["src/legacy/ui/ui_render/ui_render_mixin.js"],
|
||||
"translations": [
|
||||
"x-pack/plugins/translations/translations/zh-CN.json",
|
||||
"x-pack/plugins/translations/translations/ja-JP.json"
|
||||
|
|
|
@ -22,7 +22,7 @@ export const help: FunctionHelp<FunctionFactory<typeof axisConfig>> = {
|
|||
iso: 'ISO8601',
|
||||
},
|
||||
}),
|
||||
min: i18n.translate('xpack.canvas.functions.axisConfig.args.maxHelpText', {
|
||||
min: i18n.translate('xpack.canvas.functions.axisConfig.args.minHelpText', {
|
||||
defaultMessage:
|
||||
'Minimum value displayed in the axis. Must be a number or a date in {ms} or {iso} string',
|
||||
values: {
|
||||
|
@ -31,7 +31,7 @@ export const help: FunctionHelp<FunctionFactory<typeof axisConfig>> = {
|
|||
},
|
||||
}),
|
||||
position: i18n.translate('xpack.canvas.functions.axisConfig.args.positionHelpText', {
|
||||
defaultMessage: 'Position of the axis labels - top, bottom, left, and right',
|
||||
defaultMessage: 'Position of the axis labels: {examples}',
|
||||
values: {
|
||||
examples: Object.values(Position).join(', '),
|
||||
},
|
||||
|
|
|
@ -22,15 +22,15 @@ export const help: FunctionHelp<FunctionFactory<typeof compare>> = {
|
|||
args: {
|
||||
op: i18n.translate('xpack.canvas.functions.compare.args.opHelpText', {
|
||||
defaultMessage:
|
||||
'The operator to use in the comparison: {eq} (equal), {ne} (not equal), {lt} (less than), {gt} (greater ' +
|
||||
'than), {lte} (less than equal), {gte} (greater than eq)',
|
||||
'The operator to use in the comparison: {eq} (equal to), {gt} (greater than), {gte} (greater than or equal to)' +
|
||||
', {lt} (less than), {lte} (less than or equal to), {ne} (not equal to)',
|
||||
values: {
|
||||
eq: Operation.EQ,
|
||||
ne: Operation.NE,
|
||||
lt: Operation.LT,
|
||||
gt: Operation.GT,
|
||||
lte: Operation.LTE,
|
||||
gte: Operation.GTE,
|
||||
lt: Operation.LT,
|
||||
lte: Operation.LTE,
|
||||
ne: Operation.NE,
|
||||
},
|
||||
}),
|
||||
to: i18n.translate('xpack.canvas.functions.compare.args.toHelpText', {
|
||||
|
|
|
@ -10,7 +10,7 @@ import { FunctionHelp } from '.';
|
|||
import { FunctionFactory } from '../../functions/types';
|
||||
|
||||
export const help: FunctionHelp<FunctionFactory<typeof getCell>> = {
|
||||
help: i18n.translate('xpack.canvas.functions.vHelpText', {
|
||||
help: i18n.translate('xpack.canvas.functions.getCellHelpText', {
|
||||
defaultMessage: 'Fetch a single cell in a table',
|
||||
}),
|
||||
args: {
|
||||
|
|
|
@ -10,7 +10,7 @@ import { FunctionHelp } from '.';
|
|||
import { FunctionFactory } from '../../functions/types';
|
||||
|
||||
export const help: FunctionHelp<FunctionFactory<typeof head>> = {
|
||||
help: i18n.translate('xpack.canvas.functions.vHelpText', {
|
||||
help: i18n.translate('xpack.canvas.functions.headHelpText', {
|
||||
defaultMessage: 'Get the first {n} rows from the {datatable}. Also see `{tail}`',
|
||||
values: {
|
||||
n: 'N',
|
||||
|
|
|
@ -17,7 +17,7 @@ export const help: FunctionHelp<FunctionFactory<typeof mapColumn>> = {
|
|||
name: i18n.translate('xpack.canvas.functions.mapColumn.args.nameHelpText', {
|
||||
defaultMessage: 'The name of the resulting column',
|
||||
}),
|
||||
expression: i18n.translate('xpack.canvas.functions.mapColumn.args.nameHelpText', {
|
||||
expression: i18n.translate('xpack.canvas.functions.mapColumn.args.expressionHelpText', {
|
||||
defaultMessage:
|
||||
'A canvas expression which will be passed each row as a single row {datatable}',
|
||||
values: {
|
||||
|
|
|
@ -23,7 +23,6 @@ export const help: FunctionHelp<FunctionFactory<typeof rounddate>> = {
|
|||
defaultMessage:
|
||||
'{moment} format with which to bucket (See {url}). For example "{example}" would round to the month',
|
||||
values: {
|
||||
ms: 'ms',
|
||||
moment: 'MomentJS',
|
||||
url: 'https://momentjs.com/docs/#/displaying/',
|
||||
example: 'YYYY-MM',
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue