vue-i18n icon indicating copy to clipboard operation
vue-i18n copied to clipboard

Support changing special characters

Open SassNinja opened this issue 3 years ago • 0 comments
trafficstars

Clear and concise description of the problem

According to the docs there are certain special characters (e.g. used for interpolation) which get evaluated by the compiler: https://vue-i18n.intlify.dev/guide/essentials/syntax.html#special-characters

Unfortunately this conflicts with the existing translations I get from our backend where other characters are used for interpolation.

Suggested solution

Support changing the special characters via configuration similar to i18next (prefix & suffix): https://www.i18next.com/translation-function/interpolation#additional-options

Alternative

The only alternative in my case would be to transform the translations I receive from our backend to match the vue-i18n format which doesn't really seem be an acceptable solution.

Additional context

No response

Validations

SassNinja avatar Mar 09 '22 15:03 SassNinja