Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: i18n for enrolment instruction #37

Merged
merged 1 commit into from
Dec 8, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading