You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We're upgrading to v9.x. When translating a string, we want to perform some extra logic on the result, using special tags {tag} to be replaced in the translated result. In V8, the translated value still contained those values, but in V9 it doesn't anymore.
Input: { val: "I am a special {tag} string" }, calling t("val").
V8 result: I am a special {tag} string
V9 result: I am a special string
Suggested solution
Let's add an option to createI18n to toggle between those behaviors globally if it's not there.
Clear and concise description of the problem
We're upgrading to v9.x. When translating a string, we want to perform some extra logic on the result, using special tags
{tag}
to be replaced in the translated result. In V8, the translated value still contained those values, but in V9 it doesn't anymore.Input:
{ val: "I am a special {tag} string" }
, callingt("val")
.V8 result:
I am a special {tag} string
V9 result:
I am a special string
Suggested solution
Let's add an option to
createI18n
to toggle between those behaviors globally if it's not there.Alternative
No response
Additional context
No response
Validations
The text was updated successfully, but these errors were encountered: