claudetech / node-static-i18n

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

Concat/join translations with pre-defined value (as a prefix/suffix) #45

Closed nmapx closed 1 year ago

nmapx commented 3 years ago

Is there any built-in option that will allow adding translations as prefix/suffix to pre-defined values? For example let's assume we have a tag as follows

<tag data-attr-t content-t="translation.key" content="predefined value">

and we expect the result to be

<tag content="${value that was under translation.key}predefined value">

This is a prefix example. It could also be a suffix. Cheers!