Skip to content

Support activerecord error message scopes #8

@747

Description

@747

Rails activerecord has a function that looks up error messages in a fashion climbing up the inheritance tree (error message scopes). It seems to call I18n multiple times until it finds a translation, but R18n backend raises exception at the first try.

During debug, I change the following line:

raise ::I18n::MissingTranslationData.new(locale, key, options)

like this:

        nil #raise ::I18n::MissingTranslationData.new(locale, key, options) 

It goes on normally and finds a more general key.

There should be a way that allows the default function to work well.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions