Skip to content

Commit

Permalink
fix i18n + TS
Browse files Browse the repository at this point in the history
  • Loading branch information
alisonelizabeth committed Sep 2, 2020
1 parent bad7913 commit d8107bc
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 17 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
* you may not use this file except in compliance with the Elastic License.
*/

import React from 'react';
import React, { FunctionComponent } from 'react';
import { i18n } from '@kbn/i18n';

import {
Expand All @@ -31,12 +31,6 @@ export interface Props {
}

const i18nTexts = {
noOutputCalloutTitle: i18n.translate(
'xpack.ingestPipelines.processorOutput.noOutputCalloutTitle',
{
defaultMessage: 'Unable to load the processor output.',
}
),
tabDescription: i18n.translate('xpack.ingestPipelines.processorOutput.descriptionText', {
defaultMessage:
'View how the processor affects the ingest document as it passes through the pipeline.',
Expand Down Expand Up @@ -88,7 +82,7 @@ const i18nTexts = {
}),
};

export const ProcessorOutput: React.FunctionComponent<Props> = ({
export const ProcessorOutput: FunctionComponent<Props> = ({
processorOutput,
documents,
selectedDocumentIndex,
Expand Down Expand Up @@ -162,7 +156,7 @@ export const ProcessorOutput: React.FunctionComponent<Props> = ({
</EuiCallOut>
);
default:
return NoOutputCallout;
return <NoOutputCallOut />;
}
};

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,4 @@ export { OnUpdateHandlerArg, OnUpdateHandler } from './types';

export { SerializeResult } from './serialize';

export {
LoadFromJsonButton,
OnDoneLoadJsonHandler,
TestPipelineActions,
DocumentsDropdown,
} from './components';
export { LoadFromJsonButton, OnDoneLoadJsonHandler, TestPipelineActions } from './components';
1 change: 0 additions & 1 deletion x-pack/plugins/translations/translations/ja-JP.json
Original file line number Diff line number Diff line change
Expand Up @@ -9733,7 +9733,6 @@
"xpack.ingestPipelines.requestFlyout.descriptionText": "このElasticsearchリクエストは、このパイプラインを作成または更新します。",
"xpack.ingestPipelines.requestFlyout.namedTitle": "「{name}」のリクエスト",
"xpack.ingestPipelines.requestFlyout.unnamedTitle": "リクエスト",
"xpack.ingestPipelines.settingsFormOnFailureFlyout.cancelButtonLabel": "キャンセル",
"xpack.ingestPipelines.tabs.outputTabTitle": "アウトプット",
"xpack.ingestPipelines.testPipelineFlyout.documentsForm.documentsFieldLabel": "ドキュメント",
"xpack.ingestPipelines.testPipelineFlyout.documentsForm.documentsJsonError": "ドキュメントJSONが無効です。",
Expand Down
1 change: 0 additions & 1 deletion x-pack/plugins/translations/translations/zh-CN.json
Original file line number Diff line number Diff line change
Expand Up @@ -9736,7 +9736,6 @@
"xpack.ingestPipelines.requestFlyout.descriptionText": "此 Elasticsearch 请求将创建或更新管道。",
"xpack.ingestPipelines.requestFlyout.namedTitle": "对“{name}”的请求",
"xpack.ingestPipelines.requestFlyout.unnamedTitle": "请求",
"xpack.ingestPipelines.settingsFormOnFailureFlyout.cancelButtonLabel": "取消",
"xpack.ingestPipelines.tabs.outputTabTitle": "输出",
"xpack.ingestPipelines.testPipelineFlyout.documentsForm.documentsFieldLabel": "文档",
"xpack.ingestPipelines.testPipelineFlyout.documentsForm.documentsJsonError": "文档 JSON 无效。",
Expand Down

0 comments on commit d8107bc

Please sign in to comment.