Create a gist now

Instantly share code, notes, and snippets.

(rdb:2) translations.keys
[:"en-us", :"de-ch", :en, :fi, :"en-gb"]
(rdb:2) translations[:fi]
nil
(rdb:2) translations[:en]
{:invitation_mailer=>{:rejection_notification=>{:description=>"%{name} has rejected your invitation! You can reply to this email if\nyou'd like to contact them. They can still confirm later if they want.\nThey will still rece ... you the the point }
(rdb:2)
translations.keys
(rdb:2) [:"en-us", :"de-ch", :en, :fi, :"en-gb"]
translations.delete(:"en-us")
translations.delete(:"de-ch")
translations.delete(:en)
translations.delete(:"en-gb")
(rdb:2) translations.keys
[:fi]
(rdb:2) translations[translations.keys.first]
# a ton of finnish
(rdb:2) translations.keys[:fi]
nil
(rdb:2) translations.keys
[:fi, :"en-gb", :en, :"en-us", :"de-ch"]
(rdb:2) translations.keys.first == :fi # HMMMM. Highly suspect <------------ WTF!
false
(rdb:2) translations.keys.first
:fi
(rdb:2) translations.keys[2] == :en
true
(rdb:2) translations[:en]
# a ton of english
(rdb:2) translations[:fi]
# nil
(rdb:2) translations[translations.keys.first]
# a ton of finnish
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment