Fix unresolved i18n placeholder keys

This commit is contained in:
biss committed 2026-11-14 14:53:16 +08:00
1 parent b7eeb75294
commit 9fa1ea4d65
4 files changed
+24 -19

No files matched your search

+11 -11
View File
@@ -621,13 +621,13 @@ function approvalEndpoint(type: string) {
function approvalLabel(item: any) {
const types: Record<string, string> = {
CourseExemption: "k69",
DeferredExam: "k70",
GradeModification: "k71",
CourseSubstitution: "k72",
StudentStatusChange: "k73",
GradeSheet: "k74",
AttendanceAppeal: "k75",
CourseExemption: "courseExemption",
DeferredExam: "deferredExam",
GradeModification: "gradeChange",
CourseSubstitution: "courseSubstitution",
StudentStatusChange: "studentStatusChange",
GradeSheet: "gradeReview",
AttendanceAppeal: "attendanceAppeal",
};
if (item.type === "TeacherCourseApplication")
return t("approvalCenterExtra.teacherCourse");
@@ -648,10 +648,10 @@ function approvalLabel(item: any) {
if (extra[item.type]) return t(`approvalCenterExtra.${extra[item.type]}`);
if (item.type === "CourseAdjustment") {
const adjustments: Record<string, string> = {
调课: "k0",
停课: "k1",
补课: "k2",
代课: "k3",
调课: "reschedule",
停课: "cancelClass",
补课: "makeupClass",
代课: "substituteTeacher",
};
return adjustments[item.label]
? t(`adjustmentBatch.${adjustments[item.label]}`)
+5 -5
View File
@@ -721,7 +721,7 @@ async function automatic() {
saving.value = true;
assignments.value = [];
allocationJobId.value = undefined;
allocationJobStatus.value = "dormScript.k37";
allocationJobStatus.value = "dormScript.jobQueued";
await safe(async () => {
const { data } = await http.post(
"/dormitory-services/allocations/preview",
@@ -745,13 +745,13 @@ async function automatic() {
});
allocationJobStatus.value =
status === 1
? "dormScript.k37"
? "dormScript.jobQueued"
: status === 2
? "dormScript.k38"
? "dormScript.calculatingInBackground"
: status === 3
? "dormScript.k39"
? "dormScript.previewGenerated"
: status === 5
? "dormScript.k40"
? "dormScript.calculationFailed"
: "";
if (status === 3) {
assignments.value = job.assignments ?? [];
+2 -2
View File
@@ -1100,8 +1100,8 @@ onBeforeUnmount(() => {
<el-checkbox v-model="riskOnly" @change="reloadCurrent(true)">{{
t(
analysisMode === "courses"
? "gradeAnalysisTemplate.k6"
: "gradeAnalysisTemplate.k7",
? "gradeAnalysisTemplate.showFlaggedCoursesOnly"
: "gradeAnalysisTemplate.showFlaggedClassesOnly",
)
}}</el-checkbox>
<el-button type="primary" @click="reloadCurrent(true)">{{