Closed
Description
#620 brought up a problem with user-facing string appearing directly in models.
class Foo < ApplicationRecord
belongs_to :bar
validates :bar, presence: { message: 'show me the way to the next whiskey bar' }
end
Describe the solution you'd like
Add a cop that enforces https://rails.rubystyle.guide/#locale-texts, at least for basic cases for the start.
No strings or other locale specific settings should be used in the views, models and controllers. These texts should be moved to the locale files in the config/locales directory.
Activity