Skip to content

Commit

Permalink
Fix i18n
Browse files Browse the repository at this point in the history
  • Loading branch information
kertal committed Jan 29, 2020
1 parent 1e76512 commit 9d0b238
Show file tree
Hide file tree
Showing 3 changed files with 36 additions and 36 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -21,52 +21,52 @@ import { i18n } from '@kbn/i18n';
export function getFieldTypeName(type: string) {
switch (type) {
case 'boolean':
return i18n.translate('common.ui.directives.fieldNameIcons.booleanAriaLabel', {
return i18n.translate('kbn.discover.fieldNameIcons.booleanAriaLabel', {
defaultMessage: 'Boolean field',
});
case 'conflict':
return i18n.translate('common.ui.directives.fieldNameIcons.conflictFieldAriaLabel', {
return i18n.translate('kbn.discover.fieldNameIcons.conflictFieldAriaLabel', {
defaultMessage: 'Conflicting field',
});
case 'date':
return i18n.translate('common.ui.directives.fieldNameIcons.dateFieldAriaLabel', {
return i18n.translate('kbn.discover.fieldNameIcons.dateFieldAriaLabel', {
defaultMessage: 'Date field',
});
case 'geo_point':
return i18n.translate('common.ui.directives.fieldNameIcons.geoPointFieldAriaLabel', {
return i18n.translate('kbn.discover.fieldNameIcons.geoPointFieldAriaLabel', {
defaultMessage: 'Geo point field',
});
case 'geo_shape':
return i18n.translate('common.ui.directives.fieldNameIcons.geoShapeFieldAriaLabel', {
return i18n.translate('kbn.discover.fieldNameIcons.geoShapeFieldAriaLabel', {
defaultMessage: 'Geo shape field',
});
case 'ip':
return i18n.translate('common.ui.directives.fieldNameIcons.ipAddressFieldAriaLabel', {
return i18n.translate('kbn.discover.fieldNameIcons.ipAddressFieldAriaLabel', {
defaultMessage: 'IP address field',
});
case 'murmur3':
return i18n.translate('common.ui.directives.fieldNameIcons.murmur3FieldAriaLabel', {
return i18n.translate('kbn.discover.fieldNameIcons.murmur3FieldAriaLabel', {
defaultMessage: 'Murmur3 field',
});
case 'number':
return i18n.translate('common.ui.directives.fieldNameIcons.numberFieldAriaLabel', {
return i18n.translate('kbn.discover.fieldNameIcons.numberFieldAriaLabel', {
defaultMessage: 'Number field',
});
case 'source':
// Note that this type is currently not provided, type for _source is undefined
return i18n.translate('common.ui.directives.fieldNameIcons.sourceFieldAriaLabel', {
return i18n.translate('kbn.discover.fieldNameIcons.sourceFieldAriaLabel', {
defaultMessage: 'Source field',
});
case 'string':
return i18n.translate('common.ui.directives.fieldNameIcons.stringFieldAriaLabel', {
return i18n.translate('kbn.discover.fieldNameIcons.stringFieldAriaLabel', {
defaultMessage: 'String field',
});
case 'nested':
return i18n.translate('common.ui.directives.fieldNameIcons.nestedFieldAriaLabel', {
return i18n.translate('kbn.discover.fieldNameIcons.nestedFieldAriaLabel', {
defaultMessage: 'Nested field',
});
default:
return i18n.translate('common.ui.directives.fieldNameIcons.unknownFieldAriaLabel', {
return i18n.translate('kbn.discover.fieldNameIcons.unknownFieldAriaLabel', {
defaultMessage: 'Unknown field',
});
}
Expand Down
24 changes: 12 additions & 12 deletions x-pack/plugins/translations/translations/ja-JP.json
Original file line number Diff line number Diff line change
Expand Up @@ -268,17 +268,6 @@
"common.ui.chrome.bigUrlWarningNotificationMessage": "{advancedSettingsLink}で{storeInSessionStorageParam}オプションを有効にするか、オンスクリーンビジュアルを簡素化してください。",
"common.ui.chrome.bigUrlWarningNotificationMessage.advancedSettingsLinkText": "高度な設定",
"common.ui.chrome.bigUrlWarningNotificationTitle": "URLが大きく、Kibanaの動作が停止する可能性があります",
"common.ui.directives.fieldNameIcons.booleanAriaLabel": "ブールフィールド",
"common.ui.directives.fieldNameIcons.conflictFieldAriaLabel": "矛盾フィールド",
"common.ui.directives.fieldNameIcons.dateFieldAriaLabel": "日付フィールド",
"common.ui.directives.fieldNameIcons.geoPointFieldAriaLabel": "地理ポイント",
"common.ui.directives.fieldNameIcons.geoShapeFieldAriaLabel": "地理情報図形",
"common.ui.directives.fieldNameIcons.ipAddressFieldAriaLabel": "IP アドレスフィールド",
"common.ui.directives.fieldNameIcons.murmur3FieldAriaLabel": "Murmur3 フィールド",
"common.ui.directives.fieldNameIcons.numberFieldAriaLabel": "数値フィールド",
"common.ui.directives.fieldNameIcons.sourceFieldAriaLabel": "ソースフィールド",
"common.ui.directives.fieldNameIcons.stringFieldAriaLabel": "文字列フィールド",
"common.ui.directives.fieldNameIcons.unknownFieldAriaLabel": "不明なフィールド",
"common.ui.directives.paginate.size.allDropDownOptionLabel": "すべて",
"common.ui.dualRangeControl.mustSetBothErrorMessage": "下と上の値の両方を設定する必要があります",
"common.ui.dualRangeControl.outsideOfRangeErrorMessage": "値は {min} と {max} の間でなければなりません",
Expand Down Expand Up @@ -1231,6 +1220,17 @@
"kbn.discover.fieldChooser.searchPlaceHolder": "検索フィールド",
"kbn.discover.fieldChooser.toggleFieldFilterButtonHideAriaLabel": "フィールド設定を非表示",
"kbn.discover.fieldChooser.toggleFieldFilterButtonShowAriaLabel": "フィールド設定を表示",
"kbn.discover.fieldNameIcons.booleanAriaLabel": "ブールフィールド",
"kbn.discover.fieldNameIcons.conflictFieldAriaLabel": "矛盾フィールド",
"kbn.discover.fieldNameIcons.dateFieldAriaLabel": "日付フィールド",
"kbn.discover.fieldNameIcons.geoPointFieldAriaLabel": "地理ポイント",
"kbn.discover.fieldNameIcons.geoShapeFieldAriaLabel": "地理情報図形",
"kbn.discover.fieldNameIcons.ipAddressFieldAriaLabel": "IP アドレスフィールド",
"kbn.discover.fieldNameIcons.murmur3FieldAriaLabel": "Murmur3 フィールド",
"kbn.discover.fieldNameIcons.numberFieldAriaLabel": "数値フィールド",
"kbn.discover.fieldNameIcons.sourceFieldAriaLabel": "ソースフィールド",
"kbn.discover.fieldNameIcons.stringFieldAriaLabel": "文字列フィールド",
"kbn.discover.fieldNameIcons.unknownFieldAriaLabel": "不明なフィールド",
"kbn.discover.histogram.partialData.bucketTooltipText": "選択された時間範囲にはこのバケット全体は含まれていませんが、一部データが含まれている可能性があります。",
"kbn.discover.histogramOfFoundDocumentsAriaLabel": "発見されたドキュメントのヒストグラム",
"kbn.discover.hitsPluralTitle": "{hits, plural, one {ヒット} other {ヒット}}",
Expand Down Expand Up @@ -13201,4 +13201,4 @@
"xpack.watcher.watchEdit.thresholdWatchExpression.aggType.fieldIsRequiredValidationMessage": "フィールドを選択してください。",
"xpack.watcher.watcherDescription": "アラートの作成、管理、監視によりデータへの変更を検知します。"
}
}
}
24 changes: 12 additions & 12 deletions x-pack/plugins/translations/translations/zh-CN.json
Original file line number Diff line number Diff line change
Expand Up @@ -268,17 +268,6 @@
"common.ui.chrome.bigUrlWarningNotificationMessage": "在{advancedSettingsLink}中启用“{storeInSessionStorageParam}”选项或简化屏幕视觉效果。",
"common.ui.chrome.bigUrlWarningNotificationMessage.advancedSettingsLinkText": "高级设置",
"common.ui.chrome.bigUrlWarningNotificationTitle": "URL 过长,Kibana 可能无法工作",
"common.ui.directives.fieldNameIcons.booleanAriaLabel": "布尔字段",
"common.ui.directives.fieldNameIcons.conflictFieldAriaLabel": "冲突字段",
"common.ui.directives.fieldNameIcons.dateFieldAriaLabel": "日期字段",
"common.ui.directives.fieldNameIcons.geoPointFieldAriaLabel": "地理位置点字段",
"common.ui.directives.fieldNameIcons.geoShapeFieldAriaLabel": "几何形状字段",
"common.ui.directives.fieldNameIcons.ipAddressFieldAriaLabel": "IP 地址字段",
"common.ui.directives.fieldNameIcons.murmur3FieldAriaLabel": "Murmur3 字段",
"common.ui.directives.fieldNameIcons.numberFieldAriaLabel": "数字字段",
"common.ui.directives.fieldNameIcons.sourceFieldAriaLabel": "源字段",
"common.ui.directives.fieldNameIcons.stringFieldAriaLabel": "字符串字段",
"common.ui.directives.fieldNameIcons.unknownFieldAriaLabel": "未知字段",
"common.ui.directives.paginate.size.allDropDownOptionLabel": "全部",
"common.ui.dualRangeControl.mustSetBothErrorMessage": "下限值和上限值都须设置",
"common.ui.dualRangeControl.outsideOfRangeErrorMessage": "值必须是在 {min} 到 {max} 的范围内",
Expand Down Expand Up @@ -1231,6 +1220,17 @@
"kbn.discover.fieldChooser.searchPlaceHolder": "搜索字段",
"kbn.discover.fieldChooser.toggleFieldFilterButtonHideAriaLabel": "隐藏字段设置",
"kbn.discover.fieldChooser.toggleFieldFilterButtonShowAriaLabel": "显示字段设置",
"kbn.discover.fieldNameIcons.booleanAriaLabel": "布尔字段",
"kbn.discover.fieldNameIcons.conflictFieldAriaLabel": "冲突字段",
"kbn.discover.fieldNameIcons.dateFieldAriaLabel": "日期字段",
"kbn.discover.fieldNameIcons.geoPointFieldAriaLabel": "地理位置点字段",
"kbn.discover.fieldNameIcons.geoShapeFieldAriaLabel": "几何形状字段",
"kbn.discover.fieldNameIcons.ipAddressFieldAriaLabel": "IP 地址字段",
"kbn.discover.fieldNameIcons.murmur3FieldAriaLabel": "Murmur3 字段",
"kbn.discover.fieldNameIcons.numberFieldAriaLabel": "数字字段",
"kbn.discover.fieldNameIcons.sourceFieldAriaLabel": "源字段",
"kbn.discover.fieldNameIcons.stringFieldAriaLabel": "字符串字段",
"kbn.discover.fieldNameIcons.unknownFieldAriaLabel": "未知字段",
"kbn.discover.histogram.partialData.bucketTooltipText": "选定的时间范围不包括此整个存储桶,其可能包含部分数据。",
"kbn.discover.histogramOfFoundDocumentsAriaLabel": "已找到文档的直方图",
"kbn.discover.hitsPluralTitle": "{hits, plural, one {次命中} other {次命中}}",
Expand Down Expand Up @@ -13200,4 +13200,4 @@
"xpack.watcher.watchEdit.thresholdWatchExpression.aggType.fieldIsRequiredValidationMessage": "此字段必填。",
"xpack.watcher.watcherDescription": "通过创建、管理和监测警报来检测数据中的更改。"
}
}
}

0 comments on commit 9d0b238

Please sign in to comment.