Closed shoota closed 6 years ago
string ends with 't' is removed 't' after translation in v0.2.1
<img src="foo" alt-t="foo.bar">
<img src="foo" al="foo.bar">
https://github.com/claudetech/node-static-i18n/blob/master/lib/index.js#L141
lodash.trimEnd will remove all string. ref
lodash.trimEnd
> lodash.trimEnd('content-t', '-t') 'conten'
I will send PR soon :)
Oh, I misunderstood how trimEnd works. Thank you, I'll be waiting for your PR.
trimEnd
string ends with 't' is removed 't' after translation in v0.2.1
source
translated
reason
https://github.com/claudetech/node-static-i18n/blob/master/lib/index.js#L141
lodash.trimEnd
will remove all string. ref