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
Passing configurations to individual translations override their global counterparts, when they should be merged instead.
In the following example the desired output is some <span>foo</span>, so we set the interpolation: { escapeValue: false } option on the translation. Instead i18next outputs some __foo__, because the global interpolation.prefix and interpolation.suffix configs are overridden, rather than merged with the custom interpolation config.
Passing configurations to individual translations override their global counterparts, when they should be merged instead.
In the following example the desired output is
some <span>foo</span>
, so we set theinterpolation: { escapeValue: false }
option on the translation. Insteadi18next
outputssome __foo__
, because the global interpolation.prefix and interpolation.suffix configs are overridden, rather than merged with the custom interpolation config.global config:
translations:
call with custom options, expecting
some <span>foo</span>
to be output:output:
The text was updated successfully, but these errors were encountered: