-
-
Notifications
You must be signed in to change notification settings - Fork 629
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
translate function replacement - feature request #65
Comments
have a look at http://i18next.com/pages/doc_features.html#interpolation (hint1) you can set prefix and suffix. |
Hi @jamuhl, lib1: Send messages with variable like__myVar__ With current state: But maybe if the function translate accepts some options, we could modify addReplacement to receive an "optional" parameter "options" instead of using the private "o" and o.interpolationPrefix. Do you get my idea ? Another thing that you may want to add to that hint 1 at doc_features.html@interpolation is that if you change prefix or suffix at init you may also change resGetPath and/or resPostPath. |
ok, now i see the point. Shouldn't be do difficult to set this via option in the translate function. Will add this to next release - expected end of january. ok for you? |
Yes, that's perfect! |
starting from v1.5.11 (should be released this week) you can:
|
Would be nice to allow the use of interpolationPrefix and interpolationSufix options at translate function as you may use i18next at level (ex: view) where you receive messages from different libraries with different formats.
The text was updated successfully, but these errors were encountered: