Forum: Rails I18n rails3 available_locales empty array

3518ff338e5eee9b32eb1815daabc602?d=identicon&s=25 Marcelo Barbudas (Guest)
on 2010-10-22 20:19
(Received via mailing list)
Hi.

I'm trying to get the available locales in a rails3 project using

I18n.available_locales
or
I18n.backend.available_locales

The result is always an empty array. The translations are loaded
correctly though, I can use them in the project.

--
M.
42ec9fd08c179b547dcb60d977e29941?d=identicon&s=25 Iain Hecker (Guest)
on 2010-11-02 19:45
(Received via mailing list)
Hi,

I cannot reproduce your problem. In a clean Rails 3.0.1 app I can see
the available locales from both the Rails console and displayed from
the controller.

Have you customized any settings by any chance?

Sorry for the late response, btw?

Cheers, iain
This topic is locked and can not be replied to.