This is an automated email from the ASF dual-hosted git repository.
kriszu pushed a commit to branch dev
in repository https://gitbox.apache.org/repos/asf/incubator-streampark.git
The following commit(s) were added to refs/heads/dev by this push:
new 1ba6545ee [improve] i18n improvement (#2088)
1ba6545ee is described below
commit 1ba6545ee2cfacf92f0c250c62fd3429d96cd569
Author: benjobs <[email protected]>
AuthorDate: Thu Nov 24 21:12:22 2022 +0800
[improve] i18n improvement (#2088)
---
.../src/locales/lang/en/flink/app.ts | 12 ++++++++++++
.../src/locales/lang/zh-CN/flink/app.ts | 12 ++++++++++++
.../src/views/flink/app/components/CustomForm.tsx | 7 ++-----
.../src/views/flink/app/hooks/useFlinkRender.tsx | 6 ++----
4 files changed, 28 insertions(+), 9 deletions(-)
diff --git
a/streampark-console/streampark-console-webapp/src/locales/lang/en/flink/app.ts
b/streampark-console/streampark-console-webapp/src/locales/lang/en/flink/app.ts
index 1c30231c2..b68483776 100644
---
a/streampark-console/streampark-console-webapp/src/locales/lang/en/flink/app.ts
+++
b/streampark-console/streampark-console-webapp/src/locales/lang/en/flink/app.ts
@@ -223,4 +223,16 @@ export default {
hadoopXmlConfigFileTips:
'Automatically copy configuration files from system environment
parameters',
},
+ noteInfo: {
+ note: 'Note',
+ minute: 'minute',
+ count: 'count',
+ checkPointFailureOptions: 'CheckPoint Failure Options',
+ checkpointFailureRateInterval: 'checkpoint failure rate interval',
+ maxFailuresPerInterval: 'max failures per interval',
+ checkPointFailureNote:
+ 'Operation after checkpoint failure, e.g: Within 5 minutes (checkpoint
failure rate interval), if the number of checkpoint failures reaches 10 (max
failures per interval),action will be triggered(alert or restart job)',
+ totalMemoryNote:
+ 'Explicitly configuring both "total process memory" and "total Flink
memory" is not recommended. It may lead to deployment failures due to potential
memory configuration conflicts. Configuring other memory components also
requires caution as it can produce further configuration conflicts, The easiest
way is to set "total process memory"',
+ },
};
diff --git
a/streampark-console/streampark-console-webapp/src/locales/lang/zh-CN/flink/app.ts
b/streampark-console/streampark-console-webapp/src/locales/lang/zh-CN/flink/app.ts
index 2956282d2..6f726ae09 100644
---
a/streampark-console/streampark-console-webapp/src/locales/lang/zh-CN/flink/app.ts
+++
b/streampark-console/streampark-console-webapp/src/locales/lang/zh-CN/flink/app.ts
@@ -216,4 +216,16 @@ export default {
k8sRestExposedTypePlaceholder: 'K8S服务对外类型',
hadoopXmlConfigFileTips: '从系统环境参数自动复制配置文件',
},
+ noteInfo: {
+ note: '提示',
+ minutes: '分钟',
+ count: '次数',
+ checkPointFailureOptions: 'CheckPoint失败策略',
+ checkpointFailureRateInterval: 'checkpoint失败间隔',
+ maxFailuresPerInterval: '最大失败次数',
+ checkPointFailureNote:
+ 'checkpoint 失败处理策略, 例如: 在 5 分钟内 (checkpoint的失败间隔), 如果 checkpoint 失败次数超过
10 次 (checkpoint最大失败次数),会触发操作(发送告警或者重启作业)',
+ totalMemoryNote:
+ '不建议同时配置 "total process memory" 和 "total Flink memory"。
由于潜在的内存配置冲突,它可能会导致部署失败。 配置其他内存组件也需要谨慎,因为它会产生进一步的配置冲突,最简单的方法是设置"total process
memory"',
+ },
};
diff --git
a/streampark-console/streampark-console-webapp/src/views/flink/app/components/CustomForm.tsx
b/streampark-console/streampark-console-webapp/src/views/flink/app/components/CustomForm.tsx
index 480b5b7f5..056f49547 100644
---
a/streampark-console/streampark-console-webapp/src/views/flink/app/components/CustomForm.tsx
+++
b/streampark-console/streampark-console-webapp/src/views/flink/app/components/CustomForm.tsx
@@ -103,11 +103,8 @@ export default defineComponent({
<Tag color="#2db7f5" class="tag-note">
Note
</Tag>
- Operation after checkpoint failure, e.g:
- <br />
- Within <span class="note-elem">5 minutes</span>(checkpoint
failure rate interval), if
- the number of checkpoint failures reaches <span
class="note-elem">10</span> (max
- failures per interval),action will be triggered(alert or restart
job)
+ Operation after checkpoint failure, e.g: Within 5 minutes
(checkpoint failure rate interval), if
+ the number of checkpoint failures reaches 10 (max failures per
interval),action will be triggered(alert or restart job)
</span>
</p>
</div>
diff --git
a/streampark-console/streampark-console-webapp/src/views/flink/app/hooks/useFlinkRender.tsx
b/streampark-console/streampark-console-webapp/src/views/flink/app/hooks/useFlinkRender.tsx
index f35131393..903eba8af 100644
---
a/streampark-console/streampark-console-webapp/src/views/flink/app/hooks/useFlinkRender.tsx
+++
b/streampark-console/streampark-console-webapp/src/views/flink/app/hooks/useFlinkRender.tsx
@@ -174,12 +174,10 @@ export const renderTotalMemory = ({ model, field }:
RenderCallbackParams) => {
<Tag color="#2db7f5" class="tag-note">
Note
</Tag>
- <span>Explicitly configuring both</span>
- <span class="note-elem">total process memory</span> and
- <span class="note-elem">total Flink memory</span> is not
recommended. It may lead to
+ Explicitly configuring both "total process memory" and "total Flink
memory" is not recommended. It may lead to
deployment failures due to potential memory configuration conflicts.
Configuring other
memory components also requires caution as it can produce further
configuration conflicts,
- The easiest way is to set <span class="note-elem">total process
memory</span>
+ The easiest way is to set "total process memory"
</span>
</p>
</div>