-
Notifications
You must be signed in to change notification settings - Fork 62
Open
Description
Here is my code in my model :
enum_attr :currency, %w(en ja), :init => I18n.locale do
label :en => I18n.t(:dollar)
label :ja => I18n.t(:yen)
endMy locale files :
en:
dollar : "$"
yen : "¥"
ja:
dollar: "$"
yen : "円"This works as expected on my development environment, but on my staging (and production) environment, the labels are strange!
In my page I print out I18n.locale and I18n.default_locale, and both are "ja" as expected.
But the labels are:
<option value="en">translation missing: en.dollar</option>
<option selected="selected" value="ja">translation missing: en.yen</option>
Why it is looking for "en" despite that I18n.locale = "ja" ?
Even why it cannot find "en.dollar" despite that it exists in my locale file ?
Metadata
Metadata
Assignees
Labels
No labels