We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
松原市乾安县远辉新能源发展有限公司 转化成了 松原市干安县远辉新能源发展有限公司
const converter = OpenCC.Converter({ from: 'hk', to: 'cn' }); const result = converter('松原市乾安县远辉新能源发展有限公司'); console.log(result); // 结果为: 松原市干安县远辉新能源发展有限公司
见图:
The text was updated successfully, but these errors were encountered:
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('松原市乾安县远辉新能源发展有限公司'));
Sorry, something went wrong.
好的,谢谢,按照你的方法,问题已解决
No branches or pull requests
松原市乾安县远辉新能源发展有限公司 转化成了 松原市干安县远辉新能源发展有限公司
const converter = OpenCC.Converter({ from: 'hk', to: 'cn' });
const result = converter('松原市乾安县远辉新能源发展有限公司');
console.log(result); // 结果为: 松原市干安县远辉新能源发展有限公司
见图:
The text was updated successfully, but these errors were encountered: