6.0.1 • Published 9 months ago

ember-intl-changeset-validations v6.0.1

Weekly downloads
699
License
MIT
Repository
gitlab
Last release
9 months ago

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-cz.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-cz 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

Known issues

  • Currently when you change the locale (using setLocale) after it has been set for the first time, then ember-intl-changeset-validations will not change the translation.

Compatibility

Credits

License

This project is licensed under the MIT License.

5.1.1

9 months ago

6.0.1

9 months ago

6.0.0

9 months ago

5.1.0

1 year ago

5.0.0

3 years ago

4.0.0

3 years ago

3.0.2

4 years ago

3.0.1

4 years ago

3.0.0

4 years ago

2.0.1

5 years ago

2.0.0

5 years ago

1.1.0

6 years ago

1.0.0

6 years ago

0.1.4

7 years ago

0.1.3

7 years ago

0.1.2

7 years ago

0.1.1

7 years ago

0.1.0

7 years ago