Skip to content

Translate "This is a required field" and validation errors on 2.3 #21204

@verdde

Description

@verdde

Summary (*)

Magento 2.3 vanilla with 2 store views

I've installed multiple language packs, currently using this one
https://github.com/EaDesgin/magento2-romanian-language-pack

Everything is translated except the JS validation errors.

Examples (*)

For example :
"This is a required field."

Static deploy is ok generating static files correctly. We can find the translation in mage_translation via cache.

Checked validations.js and entire project and seems string is defined correctly:
$.mage.__('This is a required field.')

Expected results (*)

Translation should display instead of original string "This is a required field."

Behaviour existing on Magento 2.3 vanilla.

Same behaviour found on 2.2.6

Proposed solution (*)

Translation should be loaded normally.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Issue: Clear DescriptionGate 2 Passed. Manual verification of the issue description passedIssue: Format is validGate 1 Passed. Automatic verification of issue format passed

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions