creasty / i18n_flow

[beta] Manage translation status in YAML file
https://rubygems.org/gems/i18n_flow
MIT License
7 stars 1 forks source link

Quote non-string keys #12

Closed creasty closed 5 years ago

creasty commented 5 years ago

Why

https://github.com/ruby/psych/blob/master/lib/psych/scalar_scanner.rb

Some literal are parsed into non-string values and I18n.t can't resolve translation for such case.

en:
  foo:
    true: 'Hello'
I18n.t("foo.true", locale: :en)
# I18n::MissingTranslationData: translation missing: en.foo.true