[feat] Adds language option - #57
Conversation
- Adds a language option for the source string - Adds `setLanguagesConfig()` method to set language rules - Adds default language rules for the most popular Cyrillic languages - Adds tests for the new features - Updates README.md to reflect the new feature - Fixes ESLint errors/warnings - Fixes .zuul.yml to point to the correct script file
|
Related to: #56 |
|
Thanks for your contribution. However, using 'replace' option to do it seems not an ideal solution. Because it uses a global regex replace. If there are many replaces and the text is very long, considering it's not implement as an async function, it may freeze the node process. I'm planning to redesign and refactor the module in 2.0, will definitely include a language option. |
|
I think it much better use something similar to I don't think that replacing/configuring languages is good idea, looks like project could do it, or maybe |
e32fa75 to
4b5107c
Compare
1753e2d to
97834a3
Compare
|
For a temporary solution, please check #56. |
c52ceda to
eae2688
Compare
cca6582 to
7aa485c
Compare
setLanguagesConfig()method to set language rules