Improve interpolation #1952
Labels
🍰 p2-nice-to-have
Priority 2: nothing is broken but it's worth addressing
Status: Proposal
Request for comments
Type: Feature
Includes new features
Clear and concise description of the problem
Hi!
I'm using vue-i18n for my Nuxt project, and be used to use react-i18next for my React Native app. And I faced a significant difference between them regarding interpolation. Currently, when we want to have something such as
, we need two distinct translations. This cause issues in the translation process: it requires two separate keys, and doesn't allow automated translation to invert words when needed (in french, it would be "Nom de famille", so "Family" and "name" would be revert).
Suggested solution
Such as in react-i18next, it would be useful to have a syntax as
, in order to let automated translation translate the content easily, and just have something as
in our code. The output would be
Alternative
No response
Additional context
No response
Validations
The text was updated successfully, but these errors were encountered: