Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(i18n): add i18n of http connector & action #10

Merged
merged 1 commit into from
Dec 1, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions packages/i18n/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# @emqx/shared-ui-i18n

## 0.0.5

### Patch Changes

- add http connector & action i18n

## 0.0.4

### Patch Changes
Expand Down
19 changes: 17 additions & 2 deletions packages/i18n/lib/enActionsLabel.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
export const enActionsLabel: Record<string, Record<string, string>> = {
common: {
health_check_interval: 'Health Check Interval',
query_mode: 'Query Mode',
},
kafka_producer: {
topic: 'Kafka Topic',
key: 'Message Key',
Expand All @@ -19,8 +23,19 @@ export const enActionsLabel: Record<string, Record<string, string>> = {
per_partition_limit: 'Per-partition Buffer Limit',
segment_bytes: 'Segment File Bytes',
memory_overload_protection: 'Memory Overload Protection',
query_mode: 'Query Mode',
sync_query_timeout: 'Synchronous Query Timeout',
health_check_interval: 'Health Check Interval',
},
http: {
body: 'Body',
headers: 'Headers',
method: 'Method',
path: 'URL Path',
max_retries: 'Max Retries',
worker_pool_size: 'Buffer Pool Size',
start_after_created: 'Start After Created',
start_timeout: 'Start Timeout',
request_ttl: 'Request TTL',
inflight_window: 'Inflight Window',
max_buffer_bytes: 'Max Buffer Queue Size',
},
}
11 changes: 10 additions & 1 deletion packages/i18n/lib/enConnectorsLabel.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
export const enConnectorsLabel: Record<string, Record<string, string>> = {
common: {
connect_timeout: 'Connect Timeout',
},
kafka_producer: {
bootstrap_hosts: 'Bootstrap Hosts',
connect_timeout: 'Connect Timeout',
min_metadata_refresh_interval: 'Min Metadata Refresh Interval',
metadata_request_timeout: 'Metadata Request Timeout',
tcp_keepalive: 'TCP Keepalive',
Expand All @@ -14,4 +16,11 @@ export const enConnectorsLabel: Record<string, Record<string, string>> = {
username: 'Username',
password: 'Password',
},
http: {
url: 'URL',
headers: 'Headers',
enable_pipelining: 'HTTP Pipelining',
pool_size: 'Connection Pool Size',
pool_type: 'Pool Type',
},
}
19 changes: 17 additions & 2 deletions packages/i18n/lib/zhActionsLabel.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
export const zhActionsLabel: Record<string, Record<string, string>> = {
common: {
health_check_interval: '健康检查间隔',
query_mode: '请求模式',
},
kafka_producer: {
topic: 'Kafka 主题名称',
key: '消息的键',
Expand All @@ -19,8 +23,19 @@ export const zhActionsLabel: Record<string, Record<string, string>> = {
per_partition_limit: 'Kafka 分区缓存上限',
segment_bytes: '缓存文件大小',
memory_overload_protection: '内存过载保护',
query_mode: '请求模式',
sync_query_timeout: '同步查询超时时间',
health_check_interval: '健康检查间隔',
},
http: {
body: '请求体',
headers: '请求头',
method: '请求方法',
path: 'URL 路径',
max_retries: '最大重试次数',
worker_pool_size: '缓存池大小',
start_after_created: '资源自动启动',
start_timeout: '启动超时时间',
request_ttl: '请求超期',
inflight_window: '请求飞行队列窗口',
max_buffer_bytes: '缓存队列最大长度',
},
}
11 changes: 10 additions & 1 deletion packages/i18n/lib/zhConnectorsLabel.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
export const zhConnectorsLabel: Record<string, Record<string, string>> = {
common: {
connect_timeout: '连接超时',
},
kafka_producer: {
bootstrap_hosts: '主机列表',
connect_timeout: '连接超时',
min_metadata_refresh_interval: '元数据刷新最小间隔',
metadata_request_timeout: '元数据请求超时',
tcp_keepalive: 'TCP Keepalive',
Expand All @@ -14,4 +16,11 @@ export const zhConnectorsLabel: Record<string, Record<string, string>> = {
username: '用户名',
password: '密码',
},
http: {
url: 'URL',
headers: '请求头',
enable_pipelining: 'HTTP 管道',
pool_size: '连接池大小',
pool_type: '连接池类型',
},
}
2 changes: 1 addition & 1 deletion packages/i18n/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@emqx/shared-ui-i18n",
"version": "0.0.4",
"version": "0.0.5",
"homepage": "https://emqx.io",
"license": "Apache-2.0",
"repository": {
Expand Down
Loading