feat: localize academic workflow actions and guidance
This commit is contained in:
1 parent
5183158189
commit
2c38ba315c
15 files changed
+210
-208
No files matched your search
@@ -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]}`)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user