diff --git a/web/src/i18n/messages/en-US.ts b/web/src/i18n/messages/en-US.ts index 37d89e8..33370b8 100644 --- a/web/src/i18n/messages/en-US.ts +++ b/web/src/i18n/messages/en-US.ts @@ -265,4 +265,13 @@ export default { scope: { Self: 'Self only', Class: 'Class', College: 'College', All: 'All data' }, }, }, + studentProfile: { + title: 'My profile', description: 'Maintain your personal details, contact information, and any circumstances your instructors should be aware of.', refresh: 'Refresh', edit: 'Edit profile', cancel: 'Cancel', save: 'Save directly', saved: 'Profile saved. No approval is required.', + visibilityNotice: 'Your phone number, email, WeChat, emergency contact, special tags, and notes are visible to your instructors and included in class-roster exports.', studentNumber: 'Student number', name: 'Name', readonly: 'Cannot be changed here', collegeMajor: 'College / Major', classStatus: 'Administrative class / Status', grade: 'Class of {year}', + dormitory: 'Accommodation', noDormitory: 'No dormitory assigned', dormitoryNotice: 'Accommodation is maintained centrally by dormitory administrators and cannot be changed by students.', bed: 'Bed', capacity: 'Room capacity', occupants: 'Current occupants', people: '{count} people', unset: 'Not set', + identity: 'Identity and background', identityHint: 'Common identity details other than student number and name can be maintained directly.', englishName: 'English name', gender: 'Gender', birthDate: 'Date of birth', idNumber: 'Identity document number', nationality: 'Nationality', ethnicity: 'Ethnicity', politicalStatus: 'Political affiliation', nativePlace: 'Place of origin', selectNationality: 'Select nationality', selectEthnicity: 'Select ethnicity', selectPoliticalStatus: 'Select political affiliation', + contact: 'Contact details and addresses', contactHint: 'Instructors can only see your phone number, email, and WeChat from this section.', phone: 'Phone', email: 'Email', weChat: 'WeChat', postalCode: 'Postal code', householdAddress: 'Registered address', currentAddress: 'Current address', + emergency: 'Emergency contact and special tags', emergencyHint: 'This section is visible to instructors. Enter only accurate and necessary information.', emergencyContact: 'Emergency contact', relationship: 'Relationship', emergencyPhone: 'Emergency phone', specialTag: 'Special tags', selectSpecialTag: 'Select circumstances requiring attention', specialNeeds: 'Special circumstances', specialNeedsPlaceholder: 'For example, learning support or health and safety matters instructors should know', biography: 'Biography', + genders: { Unknown: 'Not set', Male: 'Male', Female: 'Female' }, statuses: { Active: 'Active', Suspended: 'Suspended', Graduated: 'Graduated', Withdrawn: 'Withdrawn' }, specialTags: { 0: 'Physical disability', 1: 'Limited mobility', 2: 'Wheelchair user', 3: 'Visual impairment', 4: 'Hearing impairment', 5: 'Speech impairment', 6: 'Learning support', 7: 'Health consideration' }, + }, } diff --git a/web/src/i18n/messages/zh-CN.ts b/web/src/i18n/messages/zh-CN.ts index 07de894..04a7984 100644 --- a/web/src/i18n/messages/zh-CN.ts +++ b/web/src/i18n/messages/zh-CN.ts @@ -286,4 +286,13 @@ export default { scope: { Self: '仅本人', Class: '班级', College: '学院', All: '全部' }, }, }, + studentProfile: { + title: '我的个人信息', description: '完善个人资料、联系方式与需要任课教师关注的特殊情况。', refresh: '刷新', edit: '修改信息', cancel: '取消', save: '直接保存', saved: '个人信息已保存,无需审核。', + visibilityNotice: '联系电话、电子邮箱、微信、紧急联系人以及特殊标记/说明会向你的任课教师展示,并写入教学班名单导出文件。', studentNumber: '学号', name: '姓名', readonly: '不可自行修改', collegeMajor: '学院 / 专业', classStatus: '行政班 / 学籍', grade: '{year} 级', + dormitory: '住宿信息', noDormitory: '暂未分配宿舍', dormitoryNotice: '住宿安排由宿管管理员统一维护,学生不可自行修改。', bed: '床位号', capacity: '宿舍容量', occupants: '当前入住', people: '{count} 人', unset: '未设置', + identity: '身份与背景', identityHint: '除学号和姓名外,可直接维护常用身份信息。', englishName: '英文姓名', gender: '性别', birthDate: '出生日期', idNumber: '证件号码', nationality: '国籍', ethnicity: '民族', politicalStatus: '政治面貌', nativePlace: '籍贯', selectNationality: '请选择国籍', selectEthnicity: '请选择民族', selectPoliticalStatus: '请选择政治面貌', + contact: '联系方式与地址', contactHint: '任课教师仅能看到本区的电话、邮箱和微信。', phone: '联系电话', email: '电子邮箱', weChat: '微信', postalCode: '邮政编码', householdAddress: '户籍地址', currentAddress: '现居住地址', + emergency: '紧急联系与特殊标记', emergencyHint: '本区内容会向任课教师展示,请填写真实且必要的信息。', emergencyContact: '紧急联系人', relationship: '与本人关系', emergencyPhone: '紧急联系电话', specialTag: '特殊标记', selectSpecialTag: '请选择需要关注的情况', specialNeeds: '特殊情况说明', specialNeedsPlaceholder: '例如学习支持、健康与安全方面需教师留意的事项', biography: '个人简介', + genders: { Unknown: '未设置', Male: '男', Female: '女' }, statuses: { Active: '在籍', Suspended: '休学', Graduated: '毕业', Withdrawn: '退学' }, specialTags: { 0: '肢体残疾', 1: '行动不便', 2: '轮椅使用者', 3: '视力障碍', 4: '听力障碍', 5: '言语障碍', 6: '学习支持', 7: '健康关注' }, + }, } diff --git a/web/src/views/StudentProfileView.vue b/web/src/views/StudentProfileView.vue index 6237e62..2d9bde3 100644 --- a/web/src/views/StudentProfileView.vue +++ b/web/src/views/StudentProfileView.vue @@ -1,5 +1,6 @@