i18n: keep 並 before 道路, 道歉 and 道理 in zh-Hant

The 並道 → 併道 correction replaced the substring anywhere, so a zh-CN
string where 并 means "and" and 道 starts the next word would turn into
併道路 or 併道歉. It now skips 道路, 道歉 and 道理. The three current
entries (lane merging) convert as before; zh-Hant.json does not change.
This commit is contained in:
German Khokhlov committed 2026-11-13 20:07:44 +04:00
1 parent 4c5fbd3223
commit 3822ee9f00
3 files changed
+9 -2

No files matched your search

+2 -1
View File
@@ -634,7 +634,8 @@ const ZH_HANT_COMMAND = 'npm run i18n -- --zh-hant';
const ZH_HANT_CORRECTIONS = [
['年曆史', '年歷史'],
['下遊', '下游'],
['並道', '併道'],
// 併道 is merging lanes; 並 stays when 道 starts 道路, 道歉 or 道理.
[/並道(?![路歉理])/g, '併道'],
['發佈', '發布'],
['公佈', '公布'],
['控制檯', '控制台'],