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

+6
View File
@@ -54,6 +54,12 @@ test('toZhHant converts characters, not vocabulary, and fixes what s2tw picks wr
assert.equal(toZhHant('50 年历史'), '50 年歷史');
assert.equal(toZhHant('发布于 {date}'), '發布於 {date}');
assert.equal(toZhHant('1 周/秒'), '1 週/秒');
assert.equal(
toZhHant('{direction}并道,进入 {road}'),
'{direction}併道,進入 {road}',
);
assert.equal(toZhHant('事故并道路封闭'), '事故並道路封閉');
assert.equal(toZhHant('已关闭并道歉'), '已關閉並道歉');
});
test('checkZhHant names each entry that is not the conversion of zh-CN', () => {