Merge remote-tracking branch 'upstream/master' into docs/i18n-translation-prompt
# Conflicts: # README.i18n.yaml # README.zh.md # docs/development.i18n.yaml # docs/development.zh.md # docs/rfc/implemented/process/2026-07-02-bilingual-docs-and-pairing-gate.i18n.yaml # docs/rfc/implemented/process/2026-07-02-bilingual-docs-and-pairing-gate.zh.md # scripts/translation-pairing.manifest.json
This commit is contained in:
@@ -47,9 +47,8 @@
|
||||
*/
|
||||
|
||||
import { createHash } from 'node:crypto'
|
||||
import { existsSync, readFileSync, writeFileSync } from 'node:fs'
|
||||
import { existsSync, globSync, readFileSync, writeFileSync } from 'node:fs'
|
||||
import { basename, join, resolve } from 'node:path'
|
||||
import { glob } from 'node:fs/promises'
|
||||
import { fromMarkdown } from 'mdast-util-from-markdown'
|
||||
import { gfmFromMarkdown } from 'mdast-util-gfm'
|
||||
import { gfm } from 'micromark-extension-gfm'
|
||||
@@ -216,7 +215,7 @@ function parse(content: string): Nodes {
|
||||
// Enumerate the scope once.
|
||||
const files = new Set<string>()
|
||||
for (const pattern of SCOPE_PATTERNS) {
|
||||
for await (const match of glob(pattern, { cwd: root })) files.add(match)
|
||||
for (const match of globSync(pattern, { cwd: root })) files.add(match)
|
||||
}
|
||||
const translations = [...files].filter(f => f.endsWith('.zh.md')).sort()
|
||||
const metas = [...files].filter(f => f.endsWith('.i18n.yaml')).sort()
|
||||
|
||||
Reference in New Issue
Block a user