ember-intl-changeset-validations

5.0.0 • Public • Published

ember-intl-changeset-validations

Adds support for ember-intl to ember-changeset-validations.

Contributor Covenant Ember Observer Score

Installation

ember install ember-intl-changeset-validations

Usage

In your project create a file with translations:

// /translations/validations/cs.json
{
  "validations": {
    "inclusion": "Musí být vybráno",
    "present": "Prosím vyplňte",
    "between": "Musí mít mezi {min} a {max} znaky",
    "invalid": "Neplatný formát",
    "email": "Nplatná e-mailová adresa"
  }
}
  • Example is for the cs locale.
  • All validation messages have to be nested under validations key.
  • Make sure to check the list of all the possible default validation messages.

From now on all the validation messages from ember-changeset-validation should be translated.

You can see it in action in the test-app:

Example dummy app

Compatibility

  • Ember.js v3.20 or above
  • Ember CLI v3.20 or above
  • Node.js v12 or above

Credits

License

This project is licensed under the MIT License.

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 5.0.0
    84
    • latest

Version History

Package Sidebar

Install

npm i ember-intl-changeset-validations

Weekly Downloads

139

Version

5.0.0

License

MIT

Unpacked Size

9.75 kB

Total Files

21

Last publish

Collaborators

  • michal.bryxi