Skip to content

Commit

Permalink
Fixed the i18n issue similarly to apache#2117.
Browse files Browse the repository at this point in the history
  • Loading branch information
kerwin612 committed Jun 21, 2024
1 parent 9b7b00e commit 0d569b9
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,7 @@
nzShowSearch
nzMode="multiple"
nzAllowClear
nzPlaceHolder="Select Tags"
[nzPlaceHolder]="'alert.notice.rule.tag.placeholder' | i18n"
required
name="tags"
id="tags"
Expand All @@ -184,7 +184,7 @@
nzShowSearch
nzMode="multiple"
nzAllowClear
nzPlaceHolder="Select Priorities"
[nzPlaceHolder]="'alert.notice.rule.priority.placeholder' | i18n"
required
name="priorities"
id="priorities"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -429,7 +429,7 @@
{{ '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>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,7 @@
nzShowSearch
nzMode="multiple"
nzAllowClear
nzPlaceHolder="Select Tags"
[nzPlaceHolder]="'alert.notice.rule.tag.placeholder' | i18n"
required
name="tags"
id="tags"
Expand All @@ -188,7 +188,7 @@
nzShowSearch
nzMode="multiple"
nzAllowClear
nzPlaceHolder="Select Priorities"
[nzPlaceHolder]="'alert.notice.rule.priority.placeholder' | i18n"
required
name="priorities"
id="priorities"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -375,7 +375,7 @@
[nzMaxTagCount]="5"
[nzDropdownMatchSelectWidth]="false"
nzShowSearch
nzPlaceHolder="Select Tag"
[nzPlaceHolder]="'alert.notice.rule.tag.placeholder' | i18n"
required
name="tag"
id="tag"
Expand Down

0 comments on commit 0d569b9

Please sign in to comment.