This is an automated email from the ASF dual-hosted git repository.
zhaoqingran pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/hertzbeat.git
The following commit(s) were added to refs/heads/master by this push:
new 31d871229 Fixed the i18n issue similarly to #2117. (#2119)
31d871229 is described below
commit 31d871229966f433a467bc0d991d3de185368005
Author: Kerwin Bryant <[email protected]>
AuthorDate: Sat Jun 22 13:59:02 2024 +0800
Fixed the i18n issue similarly to #2117. (#2119)
---
.../app/routes/alert/alert-converge/alert-converge.component.html | 4 ++--
.../app/routes/alert/alert-setting/alert-setting.component.html | 7 ++++++-
.../app/routes/alert/alert-silence/alert-silence.component.html | 4 ++--
web-app/src/app/routes/setting/status/status.component.html | 2 +-
4 files changed, 11 insertions(+), 6 deletions(-)
diff --git
a/web-app/src/app/routes/alert/alert-converge/alert-converge.component.html
b/web-app/src/app/routes/alert/alert-converge/alert-converge.component.html
index 7a2c7b814..64f35ca30 100644
--- a/web-app/src/app/routes/alert/alert-converge/alert-converge.component.html
+++ b/web-app/src/app/routes/alert/alert-converge/alert-converge.component.html
@@ -166,7 +166,7 @@
nzShowSearch
nzMode="multiple"
nzAllowClear
- nzPlaceHolder="Select Tags"
+ [nzPlaceHolder]="'alert.notice.rule.tag.placeholder' | i18n"
required
name="tags"
id="tags"
@@ -184,7 +184,7 @@
nzShowSearch
nzMode="multiple"
nzAllowClear
- nzPlaceHolder="Select Priorities"
+ [nzPlaceHolder]="'alert.notice.rule.priority.placeholder' | i18n"
required
name="priorities"
id="priorities"
diff --git
a/web-app/src/app/routes/alert/alert-setting/alert-setting.component.html
b/web-app/src/app/routes/alert/alert-setting/alert-setting.component.html
index 0c2c204b9..ec32d2fa1 100755
--- a/web-app/src/app/routes/alert/alert-setting/alert-setting.component.html
+++ b/web-app/src/app/routes/alert/alert-setting/alert-setting.component.html
@@ -428,7 +428,12 @@
{{ 'alert.priority' | i18n }}
</nz-form-label>
<nz-form-control nzSpan="12" [nzErrorTip]="'validation.required' |
i18n">
- <nz-select [(ngModel)]="define.priority" nzPlaceHolder="Choose"
name="priority" id="priority">
+ <nz-select
+ [(ngModel)]="define.priority"
+ [nzPlaceHolder]="'alert.notice.rule.priority.placeholder' | i18n"
+ name="priority"
+ id="priority"
+ >
<nz-option [nzValue]="0" [nzLabel]="'alert.priority.0' |
i18n"></nz-option>
<nz-option [nzValue]="1" [nzLabel]="'alert.priority.1' |
i18n"></nz-option>
<nz-option [nzValue]="2" [nzLabel]="'alert.priority.2' |
i18n"></nz-option>
diff --git
a/web-app/src/app/routes/alert/alert-silence/alert-silence.component.html
b/web-app/src/app/routes/alert/alert-silence/alert-silence.component.html
index 6dbad64fa..3ac3b871e 100644
--- a/web-app/src/app/routes/alert/alert-silence/alert-silence.component.html
+++ b/web-app/src/app/routes/alert/alert-silence/alert-silence.component.html
@@ -170,7 +170,7 @@
nzShowSearch
nzMode="multiple"
nzAllowClear
- nzPlaceHolder="Select Tags"
+ [nzPlaceHolder]="'alert.notice.rule.tag.placeholder' | i18n"
required
name="tags"
id="tags"
@@ -188,7 +188,7 @@
nzShowSearch
nzMode="multiple"
nzAllowClear
- nzPlaceHolder="Select Priorities"
+ [nzPlaceHolder]="'alert.notice.rule.priority.placeholder' | i18n"
required
name="priorities"
id="priorities"
diff --git a/web-app/src/app/routes/setting/status/status.component.html
b/web-app/src/app/routes/setting/status/status.component.html
index cdb4ef076..782d6d000 100644
--- a/web-app/src/app/routes/setting/status/status.component.html
+++ b/web-app/src/app/routes/setting/status/status.component.html
@@ -375,7 +375,7 @@
[nzMaxTagCount]="5"
[nzDropdownMatchSelectWidth]="false"
nzShowSearch
- nzPlaceHolder="Select Tag"
+ [nzPlaceHolder]="'alert.notice.rule.tag.placeholder' | i18n"
required
name="tag"
id="tag"
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]