网页优化

This commit is contained in:
tianmo committed 2026-10-31 15:26:31 +08:00
1 parent ab32146e8d
commit 753e3b1e21
47 files changed
+187 -56

No files matched your search

+2 -2
View File
@@ -55,8 +55,8 @@ for (const code of localeCodes.slice(1)) {
if (JSON.stringify(messages).includes('ZXQV') || /\uE000|\uE001|\uE002/.test(JSON.stringify(messages))) {
throw new Error(`${code} contains unresolved translation tokens`)
}
if (!String(messages.app?.title || '').includes('Yeomai')) {
throw new Error(`${code} title must keep the Yeomai brand`)
if (String(messages.app?.title || '').trim() !== String(messages.welcome?.documentTitle || '').trim()) {
throw new Error(`${code} welcome and editor document titles must match`)
}
}