-
-
Notifications
You must be signed in to change notification settings - Fork 206
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Can the translation variable delimiters be configured? #330
Comments
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 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 IMO this option should be supported similar to how 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: |
Thanks @aralroca that made it really easy |
Nice! @josephfarina I prereleased 1.0.0-canary.4 with this change |
It seems like translation variables are currently wrapped in
{{variable}}
. Is this configurable to something like%{variable}
?The text was updated successfully, but these errors were encountered: