feat: localize academic workflow actions and guidance

This commit is contained in:
biss committed 2026-11-01 21:17:03 +08:00
1 parent 5183158189
commit 2c38ba315c
15 files changed
+210 -208

No files matched your search

+1 -1
View File
@@ -38,7 +38,7 @@ const viewsDirectory = new URL('../src/views/', import.meta.url)
const missingBatchReferences = []
for (const name of readdirSync(viewsDirectory).filter((file) => file.endsWith('.vue'))) {
const source = readFileSync(new URL(name, viewsDirectory), 'utf8')
for (const match of source.matchAll(/t\(['"](batchBusiness\.[^'"]+)['"]/g)) {
for (const match of source.matchAll(/t\(['"]((?:batchBusiness|workflowBatch)\.[^'"]+)['"]/g)) {
if (!reference.has(match[1])) missingBatchReferences.push(`${name}: ${match[1]}`)
}
}