Deprecation of Rails String Interpolation Syntax (%{}
) in v10 of vue-i18n
#727
Unanswered
carlssonemil
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hey everyone,
As the string interpolation syntax in Rails will be deprecated in the next major version of Vue I18n1, we are uncertain about the best course of action to migrate the instances of this syntax in our translations. Since we're still using some of our translations in Rails-related files, we cannot simply do a search and replace to remove these directly in the
.yml
files. Manually checking every single translation would be a headache.Is there a way to automatically remove any instance of the
%
character from the translation strings before or during the JSON conversion? Essentially, we need to transform%{}
to{}
.Footnotes
https://vue-i18n.intlify.dev/guide/essentials/syntax#rails-i18n-format ↩
Beta Was this translation helpful? Give feedback.
All reactions