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

refactor(i18n): adapt new fields in RocketMQ & Dynamo #39

Merged
merged 2 commits into from
May 8, 2024
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.17

### Patch Changes

- Adapt new fields in RocketMQ & Dynamo

## 0.0.16

### Patch Changes
Expand Down
3 changes: 3 additions & 0 deletions packages/i18n/lib/enActionsLabel.ts
Original file line number Diff line number Diff line change
Expand Up @@ -178,6 +178,7 @@ export const enActionsLabel: Record<string, Record<string, string>> = {
refresh_interval: 'Topic Route Refresh Interval',
send_buffer: 'Send Buffer Size',
sync_timeout: 'Sync Timeout',
strategy: 'Produce Strategy',
},
clickhouse: {
batch_value_separator: 'Batch Value Separator',
Expand All @@ -190,5 +191,7 @@ export const enActionsLabel: Record<string, Record<string, string>> = {
},
dynamo: {
table: 'Table ',
hash_key: 'Hash Key',
range_key: 'Range Key',
},
}
2 changes: 2 additions & 0 deletions packages/i18n/lib/enConnectorsLabel.ts
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,7 @@ export const enConnectorsLabel: Record<string, Record<string, string>> = {
url: 'DynamoDB Endpoint',
aws_access_key_id: 'AWS Access Key ID',
aws_secret_access_key: 'AWS Secret Access Key',
region: 'DynamoDB Region',
},
gcp_pubsub_consumer: {
pipelining: 'HTTP Pipelining',
Expand All @@ -128,6 +129,7 @@ export const enConnectorsLabel: Record<string, Record<string, string>> = {
access_key: 'AccessKey',
secret_key: 'SecretKey',
security_token: 'Security Token',
namespace: 'Namespace',
},
sqlserver: {
driver: 'SQL Server Driver Name',
Expand Down
5 changes: 5 additions & 0 deletions packages/i18n/lib/enIntegrationDesc.ts
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,7 @@ export const enIntegrationDesc: Record<string, Record<string, string>> = {
table: 'DynamoDB Table.',
aws_access_key_id: 'Access Key ID for connecting to DynamoDB.',
aws_secret_access_key: 'AWS Secret Access Key for connecting to DynamoDB.',
region: 'Region of the AWS dynamo',
},
gcp_pubsub_producer: {
pipelining:
Expand Down Expand Up @@ -306,6 +307,10 @@ export const enIntegrationDesc: Record<string, Record<string, string>> = {
template:
"Template, the default value is empty. When this value is empty the whole message will be stored in the RocketMQ.<br/>The template can be any valid string with placeholders, example:<br/>- ${'{'}id{'}'}, ${'{'}username{'}'}, ${'{'}clientid{'}'}, ${'{'}timestamp{'}'}<br/>- {'{'}\"id\" : ${'{'}id{'}'}, \"username\" : ${'{'}username{'}'}{'}'}",
sync_timeout: 'Timeout of RocketMQ driver synchronous call.',
namespace:
'The namespace field MUST be set if you are using the RocketMQ service in aliyun cloud and also the namespace is enabled, or if you have configured a namespace in your RocketMQ server. For RocketMQ in aliyun cloud, the namespace is the instance ID.',
strategy:
'Produce Strategy. NOTE: Do not use `key_dispatch` if `Message Key` option is set to `none`',
},
tdengine: {
server:
Expand Down
3 changes: 3 additions & 0 deletions packages/i18n/lib/zhActionsLabel.ts
Original file line number Diff line number Diff line change
Expand Up @@ -178,6 +178,7 @@ export const zhActionsLabel: Record<string, Record<string, string>> = {
refresh_interval: '主题路由更新间隔',
send_buffer: '发送消息的缓冲区大小',
sync_timeout: '同步调用超时时间',
strategy: 'Produce 策略',
},
clickhouse: {
batch_value_separator: '分隔符',
Expand All @@ -190,5 +191,7 @@ export const zhActionsLabel: Record<string, Record<string, string>> = {
},
dynamo: {
table: '表',
hash_key: '哈希键',
range_key: '范围键',
},
}
2 changes: 2 additions & 0 deletions packages/i18n/lib/zhConnectorsLabel.ts
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,7 @@ export const zhConnectorsLabel: Record<string, Record<string, string>> = {
url: 'DynamoDB 地址',
aws_access_key_id: '连接访问 ID',
aws_secret_access_key: '连接访问密钥',
region: 'DynamoDB 区域',
},
gcp_pubsub_consumer: {
pipelining: 'HTTP 流水线',
Expand All @@ -128,6 +129,7 @@ export const zhConnectorsLabel: Record<string, Record<string, string>> = {
access_key: 'AccessKey',
secret_key: 'SecretKey',
security_token: '安全令牌',
namespace: '命名空间',
},
sqlserver: {
driver: 'SQL Server Driver 名称',
Expand Down
4 changes: 4 additions & 0 deletions packages/i18n/lib/zhIntegrationDesc.ts
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,7 @@ export const zhIntegrationDesc: Record<string, Record<string, string>> = {
table: 'DynamoDB 的表。',
aws_access_key_id: 'DynamoDB 的访问 ID。',
aws_secret_access_key: 'DynamoDB 的访问密钥。',
region: 'AWS DynamoDB 所在的区域',
},
gcp_pubsub_producer: {
pipelining:
Expand Down Expand Up @@ -278,6 +279,9 @@ export const zhIntegrationDesc: Record<string, Record<string, string>> = {
template:
"模板, 默认为空,为空时将会将整个消息转发给 RocketMQ。 <br/>模板可以是任意带有占位符的合法字符串, 例如:<br/>- ${'{'}id{'}'}, ${'{'}username{'}'}, ${'{'}clientid{'}'}, ${'{'}timestamp{'}'}<br/>- {'{'}\"id\" : ${'{'}id{'}'}, \"username\" : ${'{'}username{'}'}{'}'}",
sync_timeout: 'RocketMQ 驱动同步调用的超时时间。',
namespace:
'如果你正在使用阿里云的 RocketMQ 服务并且启用了命名空间,或者你在你自己的 RocketMQ 服务里配置了命名空间,那么你必须配置命名空间字段。对于阿里云的 RocketMQ 服务来说,命名空间就是实例 ID。',
strategy: 'Produce 策略,注意`Message Key`设置为`none`时,不可选用`key_dispatch`策略',
},
tdengine: {
server:
Expand Down
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.16",
"version": "0.0.17",
"homepage": "https://emqx.io",
"license": "Apache-2.0",
"repository": {
Expand Down
Loading