ruby-i18n / i18n

Internationalization (i18n) library for Ruby
MIT License
986 stars 411 forks source link

Enforce interpolation even the options is empty. #544

Closed piecehealth closed 2 years ago

piecehealth commented 3 years ago

Currently, I'm working on internationalizing an exsiting project, I replaced a lot of hard-code text with I18n.t, but sometimes I forget to add proper interpolation options, and the translated text will be displayed as the original translation text in the YAML file.

So I want to have an option to enable the interpolation check in the dev/test/staging environments, then I can catch these errors in advance.

piecehealth commented 2 years ago

close in favor of https://github.com/ruby-i18n/i18n/pull/624