feat(i18n): bilingual language dropdown on member form dialog
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
+1
-1
@@ -60,7 +60,7 @@
|
||||
<kendo-label text="Language"></kendo-label>
|
||||
<kendo-dropdownlist
|
||||
formControlName="languagePreference"
|
||||
[data]="langOptions" textField="text" valueField="value"
|
||||
[data]="langOptions" textField="label" valueField="value"
|
||||
[valuePrimitive]="true">
|
||||
</kendo-dropdownlist>
|
||||
</kendo-formfield>
|
||||
|
||||
+2
-5
@@ -9,7 +9,7 @@ import { DateInputsModule } from '@progress/kendo-angular-dateinputs';
|
||||
import { LayoutModule } from '@progress/kendo-angular-layout';
|
||||
import { ButtonsModule } from '@progress/kendo-angular-buttons';
|
||||
import { MemberDto, CreateMemberRequest } from '../../models/member.model';
|
||||
import { GENDER_OPTIONS, MEMBER_STATUS_OPTIONS } from '../../../../shared/i18n/option-lists';
|
||||
import { GENDER_OPTIONS, LANGUAGE_OPTIONS, MEMBER_STATUS_OPTIONS } from '../../../../shared/i18n/option-lists';
|
||||
|
||||
@Component({
|
||||
selector: 'app-member-form-dialog',
|
||||
@@ -30,10 +30,7 @@ export class MemberFormDialogComponent implements OnInit {
|
||||
|
||||
readonly statusOptions = MEMBER_STATUS_OPTIONS;
|
||||
readonly genderOptions = GENDER_OPTIONS;
|
||||
readonly langOptions = [
|
||||
{ text: 'English', value: 'en' },
|
||||
{ text: '中文', value: 'zh-TW' },
|
||||
];
|
||||
readonly langOptions = LANGUAGE_OPTIONS;
|
||||
|
||||
constructor(private fb: FormBuilder) {}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user