Skip to content

Commit

Permalink
locals.js: 添加兼容 1.9.2 版本rePageClass规则
Browse files Browse the repository at this point in the history
  • Loading branch information
maboloshi committed Sep 28, 2024
1 parent e2ee6b3 commit 68e492c
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions locals.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 正则
*
Expand Down

0 comments on commit 68e492c

Please sign in to comment.