It seems like translation variables are currently wrapped in {{variable}}. Is this configurable to something like %{variable}?
I'd be happy to make a PR to support this — if it is not already.
@josephfarina for now the interpolation prefix and suffix are limited to only {{ and }}, here's the code:
I think it's good to give the opportunity to be configurable. So, if you want to go ahead with your PR, you are welcome to do so. Thank you very much!
Hey again @aralroca, do you have any suggestion of how to access the i18n.js config file here?
IMO this option should be supported similar to how i18next does it with an interpolation.prefix and interpolation.suffix option in the config file:
https://www.i18next.com/translation-function/interpolation#additional-options
This is also a necessity for Smartling btw. They require the delim to be: %{ }
@josephfarina You have made me realize that it is a bit cumbersome to use the settings inside I18nProvider. I've done a PR to fix this, so now you can consume the configuration:
https://github.com/vinissimus/next-translate/pull/369/files#diff-ea0a179cd243269347b1b4d033a6bfd270e19e2a319af583c8c318b1040d3bcaR112
Thanks @aralroca that made it really easy
Nice! @josephfarina I prereleased 1.0.0-canary.4 with this change