rails3 available_locales empty array

85 views
Skip to first unread message

Marcelo Barbudas

unread,
Oct 22, 2010, 11:56:52 AM10/22/10
to rails-i18n
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.

Iain Hecker

unread,
Nov 2, 2010, 2:44:34 PM11/2/10
to rails...@googlegroups.com
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

> --
> You received this message because you are subscribed to the Google Groups "rails-i18n" group.
> To post to this group, send email to rails...@googlegroups.com.
> To unsubscribe from this group, send email to rails-i18n+...@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/rails-i18n?hl=en.
>
>

Reply all
Reply to author
Forward
0 new messages