Skip to content

Commit

Permalink
i18n fixes and tslint fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
nreese committed Feb 16, 2021
1 parent 4f91be2 commit 5e392d4
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 32 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,7 @@ import {
} from 'geojson';
import { i18n } from '@kbn/i18n';
// @ts-expect-error
import { JSONLoader } from '@loaders.gl/json';
import { loadInBatches } from '@loaders.gl/core';
import { JSONLoader, loadInBatches } from './loaders';
import { CreateDocsResponse } from '../types';
import { Importer } from '../importer';
import { ES_FIELD_TYPES } from '../../../../../../src/plugins/data/public';
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
/*
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
* or more contributor license agreements. Licensed under the Elastic License
* 2.0; you may not use this file except in compliance with the Elastic License
* 2.0.
*/

// Loading @loaders.gl from javascriopt file to typescript compilation failures within @loaders.gl.
export { JSONLoader } from '@loaders.gl/json';
export { loadInBatches } from '@loaders.gl/core';
9 changes: 3 additions & 6 deletions x-pack/plugins/file_upload/public/importer/importer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -91,12 +91,9 @@ export abstract class Importer implements IImporter {
if (!id || !index) {
return {
success: false,
error: i18n.translate(
'xpack.ml.fileDatavisualizer.importView.noIdOrIndexSuppliedErrorMessage',
{
defaultMessage: 'no ID or index supplied',
}
),
error: i18n.translate('xpack.fileUpload.import.noIdOrIndexSuppliedErrorMessage', {
defaultMessage: 'no ID or index supplied',
}),
};
}

Expand Down
12 changes: 0 additions & 12 deletions x-pack/plugins/translations/translations/ja-JP.json
Original file line number Diff line number Diff line change
Expand Up @@ -7470,19 +7470,10 @@
"xpack.features.savedObjectsManagementFeatureName": "保存されたオブジェクトの管理",
"xpack.features.visualizeFeatureName": "可視化",
"xpack.fileUpload.enterIndexName": "インデックス名を入力",
"xpack.fileUpload.fileParser.featuresOmitted": "ジオメトリのない一部の機能は省略されました",
"xpack.fileUpload.fileParser.noFeaturesDetected": "エラー、機能が検出されませんでした",
"xpack.fileUpload.fileParser.noFileProvided": "エラー、ファイルが提供されていません",
"xpack.fileUpload.fileParser.transformDetailsNotDefined": "{transformDetails}のインデックスオプションが定義されていません",
"xpack.fileUpload.httpService.fetchError": "フェッチ実行エラー:{error}",
"xpack.fileUpload.httpService.noUrl": "URLが指定されていません",
"xpack.fileUpload.indexingService.errorCreatingIndex": "インデックスの作成中にエラーが発生しました",
"xpack.fileUpload.indexingService.noFileImported": "ファイルはインポートされていません。",
"xpack.fileUpload.indexingService.noHandlingForTransform": "変換の処理が定義されていません。{transform}",
"xpack.fileUpload.indexingService.noIndexingDetailsForDatatype": "データ型のインデックス詳細が定義されていません。{dataType}",
"xpack.fileUpload.indexingService.noTransformDefined": "変換が定義されていません",
"xpack.fileUpload.indexingService.transformResultError": "データの変換エラー:{error}",
"xpack.fileUpload.indexingService.unknownTransformError": "変換の実行中に不明なエラーが発生しました。{transform}",
"xpack.fileUpload.indexNameReqField": "インデックス名、必須フィールド",
"xpack.fileUpload.indexSettings.enterIndexNameLabel": "インデックス名",
"xpack.fileUpload.indexSettings.enterIndexTypeLabel": "インデックスタイプ",
Expand All @@ -7507,7 +7498,6 @@
"xpack.fileUpload.jsonIndexFilePicker.filePicker": "ファイルをアップロード",
"xpack.fileUpload.jsonIndexFilePicker.filePickerLabel": "アップロードするファイルを選択",
"xpack.fileUpload.jsonIndexFilePicker.fileProcessingError": "ファイル処理エラー: {errorMessage}",
"xpack.fileUpload.jsonIndexFilePicker.fileSizeError": "ファイルサイズエラー:{errorMessage}",
"xpack.fileUpload.jsonIndexFilePicker.formatsAccepted": "許可されているフォーマット:{acceptedFileTypeStringMessage}",
"xpack.fileUpload.jsonIndexFilePicker.maxSize": "最大サイズ:{maxFileSize}",
"xpack.fileUpload.jsonIndexFilePicker.noFileNameError": "ファイル名が指定されていません",
Expand All @@ -7520,7 +7510,6 @@
"xpack.fileUpload.jsonUploadAndParse.indexPatternComplete": "インデックスパターンの完了",
"xpack.fileUpload.jsonUploadAndParse.indexPatternError": "インデックスパターンエラー",
"xpack.fileUpload.jsonUploadAndParse.writingToIndex": "インデックスに書き込み中",
"xpack.fileUpload.noIndexSuppliedErrorMessage": "インデックスが指定されていません。",
"xpack.fleet.agentBulkActions.agentsSelected": "{count, plural, other {#個のエージェント}}が選択されました",
"xpack.fleet.agentBulkActions.clearSelection": "選択した項目をクリア",
"xpack.fleet.agentBulkActions.reassignPolicy": "新しいポリシーに割り当てる",
Expand Down Expand Up @@ -13167,7 +13156,6 @@
"xpack.ml.fileDatavisualizer.importView.indexNameContainsIllegalCharactersErrorMessage": "インデックス名に許可されていない文字が含まれています",
"xpack.ml.fileDatavisualizer.importView.indexPatternDoesNotMatchIndexNameErrorMessage": "インデックスパターンがインデックス名と一致しません",
"xpack.ml.fileDatavisualizer.importView.indexPatternNameAlreadyExistsErrorMessage": "インデックスパターン名が既に存在します",
"xpack.ml.fileDatavisualizer.importView.noIdOrIndexSuppliedErrorMessage": "ID またはインデックスが提供されていません",
"xpack.ml.fileDatavisualizer.importView.parseMappingsError": "マッピングのパース中にエラーが発生しました:",
"xpack.ml.fileDatavisualizer.importView.parsePipelineError": "投入パイプラインのパース中にエラーが発生しました:",
"xpack.ml.fileDatavisualizer.importView.parseSettingsError": "設定のパース中にエラーが発生しました:",
Expand Down
12 changes: 0 additions & 12 deletions x-pack/plugins/translations/translations/zh-CN.json
Original file line number Diff line number Diff line change
Expand Up @@ -7489,19 +7489,10 @@
"xpack.features.savedObjectsManagementFeatureName": "已保存对象管理",
"xpack.features.visualizeFeatureName": "Visualize",
"xpack.fileUpload.enterIndexName": "输入索引名称",
"xpack.fileUpload.fileParser.featuresOmitted": "不具有几何形状的一些特征已省略",
"xpack.fileUpload.fileParser.noFeaturesDetected": "错误,未检测到特征",
"xpack.fileUpload.fileParser.noFileProvided": "错误,未提供任何文件",
"xpack.fileUpload.fileParser.transformDetailsNotDefined": "未定义 {transformDetails} 的索引选项",
"xpack.fileUpload.httpService.fetchError": "执行提取时出错:{error}",
"xpack.fileUpload.httpService.noUrl": "未提供 URL",
"xpack.fileUpload.indexingService.errorCreatingIndex": "创建索引时出错",
"xpack.fileUpload.indexingService.noFileImported": "未导入任何文件。",
"xpack.fileUpload.indexingService.noHandlingForTransform": "没有为转换 {transform} 定义任何处理方式",
"xpack.fileUpload.indexingService.noIndexingDetailsForDatatype": "没有为数据类型 {dataType} 定义任何索引详情",
"xpack.fileUpload.indexingService.noTransformDefined": "未定义任何转换",
"xpack.fileUpload.indexingService.transformResultError": "转换数据时出错:{error}",
"xpack.fileUpload.indexingService.unknownTransformError": "执行转换 {transform} 时出现未知错误",
"xpack.fileUpload.indexNameReqField": "索引名称,必填字段",
"xpack.fileUpload.indexSettings.enterIndexNameLabel": "索引名称",
"xpack.fileUpload.indexSettings.enterIndexTypeLabel": "索引类型",
Expand All @@ -7526,7 +7517,6 @@
"xpack.fileUpload.jsonIndexFilePicker.filePicker": "上传文件",
"xpack.fileUpload.jsonIndexFilePicker.filePickerLabel": "选择文件进行上传",
"xpack.fileUpload.jsonIndexFilePicker.fileProcessingError": "文件处理错误:{errorMessage}",
"xpack.fileUpload.jsonIndexFilePicker.fileSizeError": "文件大小错误:{errorMessage}",
"xpack.fileUpload.jsonIndexFilePicker.formatsAccepted": "接受的格式:{acceptedFileTypeStringMessage}",
"xpack.fileUpload.jsonIndexFilePicker.maxSize": "最大大小:{maxFileSize}",
"xpack.fileUpload.jsonIndexFilePicker.noFileNameError": "未提供任何文件名称",
Expand All @@ -7539,7 +7529,6 @@
"xpack.fileUpload.jsonUploadAndParse.indexPatternComplete": "索引模式完成",
"xpack.fileUpload.jsonUploadAndParse.indexPatternError": "索引模式错误",
"xpack.fileUpload.jsonUploadAndParse.writingToIndex": "正在写入索引",
"xpack.fileUpload.noIndexSuppliedErrorMessage": "未提供任何索引。",
"xpack.fleet.agentBulkActions.agentsSelected": "已选择 {count, plural, other {# 个代理}}",
"xpack.fleet.agentBulkActions.clearSelection": "清除所选内容",
"xpack.fleet.agentBulkActions.reassignPolicy": "分配到新策略",
Expand Down Expand Up @@ -13198,7 +13187,6 @@
"xpack.ml.fileDatavisualizer.importView.indexNameContainsIllegalCharactersErrorMessage": "索引名称包含非法字符",
"xpack.ml.fileDatavisualizer.importView.indexPatternDoesNotMatchIndexNameErrorMessage": "索引模式与索引名称不匹配",
"xpack.ml.fileDatavisualizer.importView.indexPatternNameAlreadyExistsErrorMessage": "索引模式名称已存在",
"xpack.ml.fileDatavisualizer.importView.noIdOrIndexSuppliedErrorMessage": "未提供任何 ID 或索引",
"xpack.ml.fileDatavisualizer.importView.parseMappingsError": "解析映射时出错:",
"xpack.ml.fileDatavisualizer.importView.parsePipelineError": "解析采集管道时出错:",
"xpack.ml.fileDatavisualizer.importView.parseSettingsError": "解析设置时出错:",
Expand Down

0 comments on commit 5e392d4

Please sign in to comment.