If you ever encountered this error probably you are trying to add/access a I18n key for a `enum` attribute. For example if my model has a `enum` value like below.
class Shipment < ApplicationRecord enum delivery_option: {"arrival_notice":"arrival_notice", "arrival_schedule": "arrival_schedule"} end
If we want to internationalize the `values` as
Call/notify before delivery and Delivery appointment required
. In your en.yml
 you need to specify as below.
en: activerecord: attributes: shipment: delivery_option: one: 'Delivery Option' arrival_notice: "Call/notify before delivery" arrival_schedule: "Delivery appointment required"
I18n expects the name of-the field as the first key/value.If you forget that then you see this error. Happy coding!