testing for I18n.locale

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

testing for I18n.locale

fugee ohu
this code below fails to work seemingly rails still tries to translate and returns this error: I18nData::NoTranslationAvailable -- countries-EN-US


if I18n.locale == "en-US"
    don't do any translations
end

--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/13d63fbe-c09a-4714-bea5-e2d0198b38dd%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.