Skip to content

Commit

Permalink
Fixed the i18n issue similarly to #2117. (#2119)
Browse files Browse the repository at this point in the history
  • Loading branch information
kerwin612 authored Jun 22, 2024
1 parent c4a6e36 commit 31d8712
Show file tree
Hide file tree
Showing 4 changed files with 11 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 @@ -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>
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 31d8712

Please sign in to comment.