im trying desperately to load my norwegian translation file here…
I’ve set config.i18n.default_locale = :nb_NO which should load config/
locales/nb_NO.yml yeah? it just loads config/locales/en_US.yml. both
locales are present in config/ and i can’t see anything wrong with the
nb_NO.yml syntax…
By default Rails loads every .rb and .yml file in config/locales, so
you shouldn’t be setting the load path yourself. And you should use a
dash instead of an underscore. Neither of these are solutions to your
problem, but just check it to see if it’s accurate.
Thank y’all so much for the response fellas - my yml had nb_NO: at the
root
but needed “nb-NO”: - and my environment.rb had
config.i18n.default_locale =
:nb_NO but needed config.i18n.default_locale = :“nb-NO”. Hopefully I can
buy
y’all a beer sometime.
Have a great day!
This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.