wooorm / franc

Natural language detection
https://wooorm.com/franc/
MIT License
4.07k stars 175 forks source link

Update expressions.js #114

Closed verden11 closed 10 months ago

verden11 commented 10 months ago

on Safari special Japanese characters become garbled

wooorm commented 10 months ago

Hi!

As can be seen in the comment at the top of the file, these files are generated. If you change them, they’ll just be changed again.

To fix this, you’ll have to change build.js: https://github.com/wooorm/franc/blob/main/script/build.js.

The file is also only in one package, but we ship several packages.

Closing as I can’t currently accept it, but if you find the time, I’d appreciate a fix in build.js!

verden11 commented 10 months ago

sure, take a look @ https://github.com/wooorm/franc/pull/115