Jets I18n documentation

Please update the official docs.

I18n.load_path = Dir["#{Jets.root}/config/locales/*.yml"]

This line overwrites the loading path, it should be

I18n.load_path << Dir["#{Jets.root}/config/locales/*.yml"]

This way default ActiveRecord translations won’t be prevented from loading.
Overwise you’ll get ‘missing translation’ errors like this one:
translation missing: en.activerecord.errors.models.MODEL_NAME.attributes.ATTRIBUTE_NAME.blank

Done :grinning_face_with_smiling_eyes:

Will consider PRs in the future. Thanks! :+1:

1 Like