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
具体可看demo https://github.com/Banana-energy/rollup-plugin-i18n-auto-issuse 排查之后发现是const hasWord = path.node.quasis.some(item => localePattern.test(item.value.raw))这里正则匹配没通过
理论上应该是没问题的,经过ts的编译后中文会转义为Unicode字符,然而应该还是能匹配上才对
The text was updated successfully, but these errors were encountered:
Sorry, something went wrong.
原因是转义之后单个文字变成了6 个字符(, u, 6, D, 4, B),并不是单个中文字符
No branches or pull requests
具体可看demo
https://github.com/Banana-energy/rollup-plugin-i18n-auto-issuse
排查之后发现是const hasWord = path.node.quasis.some(item => localePattern.test(item.value.raw))这里正则匹配没通过
理论上应该是没问题的,经过ts的编译后中文会转义为Unicode字符,然而应该还是能匹配上才对
The text was updated successfully, but these errors were encountered: