Skip to content

Commit

Permalink
refactor(i18n): add label & dec for Azure Blob Storage
Browse files Browse the repository at this point in the history
  • Loading branch information
Kinplemelon committed Jun 28, 2024
1 parent ec53c26 commit c284c41
Show file tree
Hide file tree
Showing 8 changed files with 49 additions and 0 deletions.
10 changes: 10 additions & 0 deletions packages/i18n/lib/enActionsLabel.ts
Original file line number Diff line number Diff line change
Expand Up @@ -196,6 +196,16 @@ export const enActionsLabel: Record<string, Record<string, string>> = {
min_part_size: 'Min Part Size',
max_part_size: 'Max Part Size',
},
azure_blob_storage: {
parameters: 'Upload Mode',
column_order: 'Column Order',
time_interval: 'Time Interval',
max_records: 'Max Records',
content: 'Object Content',
type: 'Aggregation Type',
blob: 'Blob Name',
container: 'Container',
},
dynamo: {
table: 'Table ',
hash_key: 'Hash Key',
Expand Down
4 changes: 4 additions & 0 deletions packages/i18n/lib/enConnectorsLabel.ts
Original file line number Diff line number Diff line change
Expand Up @@ -165,4 +165,8 @@ export const enConnectorsLabel: Record<string, Record<string, string>> = {
headers: 'HTTP Headers',
request_timeout: 'Request Timeout',
},
azure_blob_storage: {
account_name: 'Account Name',
account_key: 'Account Key',
},
}
8 changes: 8 additions & 0 deletions packages/i18n/lib/enIntegrationDesc.ts
Original file line number Diff line number Diff line change
Expand Up @@ -509,4 +509,12 @@ export const enIntegrationDesc: Record<string, Record<string, string>> = {
min_part_size: `The minimum part size for multipart uploads.<br/>Uploaded data will be accumulated in memory until this size is reached.`,
max_part_size: `The maximum part size for multipart uploads.<br/>S3 uploader won't try to upload parts larger than this size.`,
},
azure_blob_storage: {
column_order: `Event fields that will be ordered first as columns in the resulting CSV file.<br/>Regardless of this setting, resulting CSV will contain all the fields of aggregated events, but all the columns not explicitly mentioned here will be ordered after the ones listed here in the lexicographical order.`,
time_interval: 'Amount of time events will be aggregated in a single object before uploading.',
max_records: `Number of records (events) allowed per each aggregated object. Each aggregated upload will contain no more than that number of events, but may contain less.<br/>If event rate is high enough, there obviously may be more than one aggregated upload during the same time interval. These uploads will have different, but consecutive sequence numbers, which will be a part of S3 object key.`,
content: 'The content of the object to be uploaded supports placeholders.',
blob: 'Azure Blob Storage blob name.',
container: 'Azure Blob Storage container name.',
},
}
2 changes: 2 additions & 0 deletions packages/i18n/lib/enSymbolLabel.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,8 @@ export const enSymbolLabel: Record<string, string> = {
parameters_action_create: 'Create',
parameters_s_3_direct_upload_parameters: 'Direct Upload',
parameters_s_3_aggregated_upload_parameters: 'Aggregated Upload',
parameters_direct_parameters: 'Direct Upload',
parameters_aggreg_parameters: 'Aggregated Upload',
all_partitions: 'All Partitions',
plain: 'Plain',
scram_sha_256: 'SHA256',
Expand Down
10 changes: 10 additions & 0 deletions packages/i18n/lib/zhActionsLabel.ts
Original file line number Diff line number Diff line change
Expand Up @@ -196,6 +196,16 @@ export const zhActionsLabel: Record<string, Record<string, string>> = {
min_part_size: '最小分块大小',
max_part_size: '最大分块大小',
},
azure_blob_storage: {
parameters: '上传方式',
column_order: '列排序',
time_interval: '时间间隔',
max_records: '最大记录数',
content: '对象内容',
type: '增强类型',
blob: 'Blob 名称',
container: '容器',
},
dynamo: {
table: '表',
hash_key: '哈希键',
Expand Down
4 changes: 4 additions & 0 deletions packages/i18n/lib/zhConnectorsLabel.ts
Original file line number Diff line number Diff line change
Expand Up @@ -165,4 +165,8 @@ export const zhConnectorsLabel: Record<string, Record<string, string>> = {
headers: '请求头',
request_timeout: '请求超时',
},
azure_blob_storage: {
account_name: '账户名',
account_key: '账户密钥',
},
}
9 changes: 9 additions & 0 deletions packages/i18n/lib/zhIntegrationDesc.ts
Original file line number Diff line number Diff line change
Expand Up @@ -460,4 +460,13 @@ export const zhIntegrationDesc: Record<string, Record<string, string>> = {
min_part_size: `分块上传的最小分块大小。<br/>上传的数据将在内存中累积,直到达到此大小。`,
max_part_size: `分块上传的最大分块大小。<br/>S3 上传程序不会尝试上传超过此大小的部分。`,
},
azure_blob_storage: {
column_order: `在生成的 CSV 文件中首先按列排序的事件字段。<br/>无论此设置如何,生成的 CSV 都将包含聚合事件的所有字段,但此处未明确提及的所有列将按字典顺序排在这里列出的字段之后。`,
time_interval: '在上传前将事件聚合到单个对象中的时间量。',
max_records: `每个聚合对象允许的记录(事件)数量。每次聚合上传包含的事件数量不会超过此数值,但可能会更少。<br/>如果事件速率足够高,在同一时间间隔内显然可能会有多个聚合上传。这些上传将具有不同但连续的序列号,这些序列号将是 S3 对象键的一部分。`,
content:
"要存储的对象的内容。默认情况下,它是包含所有字段的 JSON 文本格式。支持如 ${'{'}payload{'}'} 的占位符设置。存储格式取决于变量的格式,支持二进制内容。",
blob: 'Azure Blob Storage blob 名称。',
container: 'Azure Blob Storage 容器名称。',
},
}
2 changes: 2 additions & 0 deletions packages/i18n/lib/zhSymbolLabel.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,8 @@ export const zhSymbolLabel: Record<string, string> = {
parameters_action_create: '创建',
parameters_s_3_direct_upload_parameters: '直接上传',
parameters_s_3_aggregated_upload_parameters: '聚合上传',
parameters_direct_parameters: '直接上传',
parameters_aggreg_parameters: '聚合上传',
all_partitions: '所有分区',
plain: 'Plain',
scram_sha_256: 'SHA256',
Expand Down

0 comments on commit c284c41

Please sign in to comment.