claudetech / node-static-i18n

HTML static pages i18n tool
https://www.npmjs.com/package/static-i18n
MIT License
102 stars 21 forks source link

Add options to use custom prefix and suffix for interpolation #47

Open yxor opened 3 years ago

yxor commented 3 years ago

I recently faced an issue with using gulp-static-i18n-html (It depends on this project) where another gulp plugin uses the same prefix and suffix used by this plugin for interpolation ({{ and }}) and breaks the functionality.

This pull request adds the ability to use a custom interpolation prefix and suffix by passing in some options while maintaining {{ and }} as default, also fixed an issue with tests passing on windows.