The interpolation syntax {{key}} in I18n messages is deprecated. Use% {key} instead

I am running ruby โ€‹โ€‹1.8.7 (2010-01-10 patchlevel 249) [i686-darwin10.3.2] with Rails 2.3.8, and I need to use this version. When I run "rake test", I get

The {{key}} interpolation syntax in I18n messages is deprecated. Please use %{key} instead. 

There was an error, but now it needs to be solved: https://rails.lighthouseapp.com/projects/8994/tickets/4525-favor-in-all-code-instead-of-deprecated-as-interpolation-syntax-for-i18n

I tried i18n gem with versions 0.4.1, 0.4.0 and 0.4.0-beta1 with no luck

Any idea?

+6
ruby-on-rails internationalization
source share
2 answers
+9
source share

You need to remove the earliest version, or you can set this line to environment.rb

config.gem 'i18n' ,: version => '~> 0.3.7'

and they start a rake-rake: unpack and the stone will be unpacked in your supplier folder

+1
source share

All Articles