乾字转化有问题,转成了干
Opened this issue · 2 comments
itstudygeen commented
ren1244 commented
You may try adding word mapping.
const customHkToCn = [
['乾安', '乾安'],
];
const converter = OpenCC.ConverterFactory(
OpenCC.Locale.from.hk,
OpenCC.Locale.to.cn.concat([customHkToCn])
);
console.log(converter('松原市乾安县远辉新能源发展有限公司'));
itstudygeen commented
好的,谢谢,按照你的方法,问题已解决