Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] I18n.transliterate broken #614

Closed
laurafeier opened this issue Feb 3, 2022 · 1 comment
Closed

[BUG] I18n.transliterate broken #614

laurafeier opened this issue Feb 3, 2022 · 1 comment

Comments

@laurafeier
Copy link

What I tried to do

  • I18n.transliterate("ț") where "ț" is defined in i18n.transliterate.rule with value of t

What I expected to happen

  • Result should be the value defined in i18n.transliterate.rule, for this example t

What actually happened

  • result is "?"

Examples

Example of working code with

  • ruby 3.1.0
  • rails 6.1.4.4,
  • i18n 1.8.11
irb(main):001:0> I18n.t("i18n.transliterate.rule.ț")
=> "t"
irb(main):002:0> I18n.transliterate("ț")
=> "t"
irb(main):003:0> I18n.t("i18n.transliterate.rule")
=> {:ș=>"s", :ț=>"t", :Ș=>"S", :Ț=>"T"}

Same example, broken behaviour, with

  • ruby 3.1.0
  • rails 6.1.4.4,
  • i18n 1.9.1
irb(main):001:0> I18n.t("i18n.transliterate.rule.ț")
=> "translation missing: en.i18n.transliterate.rule.ț"
irb(main):002:0> I18n.transliterate("ț")
=> "?"
irb(main):003:0> I18n.t("i18n.transliterate.rule")
=> {:"\xC8\x99"=>"s", :"\xC8\x9B"=>"t", :"\xC8\x98"=>"S", :"\xC8\x9A"=>"T"}

Note: This might be linked to #606

@radar
Copy link
Collaborator

radar commented Feb 3, 2022

Certainly is related! Let's keep the conversation on #606.

@radar radar closed this as completed Feb 3, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants