Skip to content

Commit

Permalink
feat: i18n for enrolment instruction
Browse files Browse the repository at this point in the history
  • Loading branch information
jsun969 committed Dec 8, 2024
1 parent 769a2a5 commit aa8933b
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 6 deletions.
5 changes: 2 additions & 3 deletions src/components/EnrolmentModal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -38,9 +38,8 @@ export const EnrolmentModal = ({ isOpen, onOpenChange }: ReadyModalProps) => {
<ModalContent>
<ModalHeader className="flex-col">
<div>{t('calendar.end-actions.ready')}</div>
<div className="text-xs font-normal">
Copy the numbers below and enter them on the enrollment page of
Access Adelaide.
<div className="text-sm font-normal">
{t('calendar.end-actions.enrolment-instruction')}
</div>
</ModalHeader>
<ModalBody className={clsx(!isOnlyCourse && 'grid grid-cols-2')}>
Expand Down
5 changes: 3 additions & 2 deletions src/locales/en-au.json
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,8 @@
"end-actions": {
"copy": "Copy to clipboard",
"ready": "Ready for Enrolment",
"copy-success": "Copied to clipboard!"
"copy-success": "Copied to clipboard!",
"enrolment-instruction": "Copy the numbers below and enter them on the enrolment page of Access Adelaide."
}
},
"help": {
Expand All @@ -56,7 +57,7 @@
"change-week": "Change the calendar week to see more classes.",
"course-details": "Click your enrolled course to see details of your enrolled classes.",
"course-modal": "If you encounter any class clashes when using MyTimetable, you can open the modal to change the class.",
"ready-button": "Once you are satisfied with your class times, click the \"Ready for Enrollment\" button at the bottom of the calendar.",
"ready-button": "Once you are satisfied with your class times, click the \"Ready for Enrolment\" button at the bottom of the calendar.",
"access-adelaide": "You can easily enroll in courses on Access Adelaide using the class numbers shown in the modal."
},
"actions": {
Expand Down
3 changes: 2 additions & 1 deletion src/locales/zh-cn.json
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,8 @@
"end-actions": {
"copy": "复制到剪切板",
"ready": "准备选课",
"copy-success": "已成功复制到剪切板!"
"copy-success": "已成功复制到剪切板!",
"enrolment-instruction": "复制课程代号并前往 Access Adelaide 的 Enrolment 页面输入以正式选课"
}
},
"help": {
Expand Down

0 comments on commit aa8933b

Please sign in to comment.