i18n
i18n copied to clipboard
[BUG] transliterating all-caps strings ends up with mixed case
What I tried to do
I want to transliterate an all-caps string
I18n.transliterate("KANÜLE")
What I expected to happen
I expect all resulting characters to be capitalized
#=> "KANUELE"
What actually happened
The resulting characters are mixed case
#=> "KANUeLE"
Simply changing the entries in the translations file to "Ü": "UE"
works for this case, but then of course mixed case words will be transliterated in a wrong manner:
I18n.transliterate("Überfall")
#=> "UEberfall"
I would expect a solution that can handle both cases gracefully.
Versions of i18n, rails, and anything else you think is necessary
All versions of i18n