feat(i18n): add new i18n message files and update request config
- Add new i18n message files: audit, course-plans, files, leave, nav, practice, scheduling, student, users - Update existing i18n messages: ai, attendance, common, diagnostic, elective, error-book, exam-homework, grades, lesson-preparation, school, settings - Update i18n request config for new locale handling
This commit is contained in:
@@ -40,6 +40,16 @@ export default getRequestConfig(async () => {
|
||||
elective,
|
||||
school,
|
||||
ai,
|
||||
practice,
|
||||
student,
|
||||
errorBook,
|
||||
audit,
|
||||
scheduling,
|
||||
coursePlans,
|
||||
files,
|
||||
users,
|
||||
leave,
|
||||
nav,
|
||||
] = await Promise.all([
|
||||
import(`@/shared/i18n/messages/${locale}/common.json`),
|
||||
import(`@/shared/i18n/messages/${locale}/auth.json`),
|
||||
@@ -61,6 +71,16 @@ export default getRequestConfig(async () => {
|
||||
import(`@/shared/i18n/messages/${locale}/elective.json`),
|
||||
import(`@/shared/i18n/messages/${locale}/school.json`),
|
||||
import(`@/shared/i18n/messages/${locale}/ai.json`),
|
||||
import(`@/shared/i18n/messages/${locale}/practice.json`),
|
||||
import(`@/shared/i18n/messages/${locale}/student.json`),
|
||||
import(`@/shared/i18n/messages/${locale}/error-book.json`),
|
||||
import(`@/shared/i18n/messages/${locale}/audit.json`),
|
||||
import(`@/shared/i18n/messages/${locale}/scheduling.json`),
|
||||
import(`@/shared/i18n/messages/${locale}/course-plans.json`),
|
||||
import(`@/shared/i18n/messages/${locale}/files.json`),
|
||||
import(`@/shared/i18n/messages/${locale}/users.json`),
|
||||
import(`@/shared/i18n/messages/${locale}/leave.json`),
|
||||
import(`@/shared/i18n/messages/${locale}/nav.json`),
|
||||
]);
|
||||
|
||||
return {
|
||||
@@ -86,6 +106,16 @@ export default getRequestConfig(async () => {
|
||||
elective: elective.default,
|
||||
school: school.default,
|
||||
ai: ai.default,
|
||||
practice: practice.default,
|
||||
student: student.default,
|
||||
errorBook: errorBook.default,
|
||||
audit: audit.default,
|
||||
scheduling: scheduling.default,
|
||||
coursePlans: coursePlans.default,
|
||||
files: files.default,
|
||||
users: users.default,
|
||||
leave: leave.default,
|
||||
nav: nav.default,
|
||||
},
|
||||
};
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user