From 68e492c5c1416f90c396f9c7ff86d87a6fcee9bb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=B2=99=E6=BC=A0=E4=B9=8B=E5=AD=90?= <7850715+maboloshi@users.noreply.github.com> Date: Sat, 28 Sep 2024 19:47:47 +0800 Subject: [PATCH] =?UTF-8?q?locals.js:=20=E6=B7=BB=E5=8A=A0=E5=85=BC?= =?UTF-8?q?=E5=AE=B9=201.9.2=20=E7=89=88=E6=9C=AC`rePageClass`=E8=A7=84?= =?UTF-8?q?=E5=88=99?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- locals.js | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/locals.js b/locals.js index e371d32da..5736b7260 100644 --- a/locals.js +++ b/locals.js @@ -160,6 +160,15 @@ I18N.conf = { }, // 以下兼容 1.9.2 版本,且冻结 等待 1.9.3 明显 Bug 修复 + /** + * 要翻译的页面正则(不含仓库页) + * + * 2021-10-07 11:53:34 + * GitHub 网站更新 调整 Class 过滤规则 + * 且过滤 Class 并不是总是生效,增加 PathName 规则补充 + */ + rePageClass: /\b(page-(profile|new-repo|create-org)|session-authentication)\b/, + /** * 忽略区域的 class 正则 *