All Projects → mirai-audio → Ember I18n Changeset Validations

mirai-audio / Ember I18n Changeset Validations

Licence: mit
ember-i18n support for ember-changeset-validations messages

Programming Languages

javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to Ember I18n Changeset Validations

ember-i18n-cp-validations
ember-i18n support for ember-cp-validations
Stars: ✭ 20 (+81.82%)
Mutual labels:  i18n, ember, internationalization, ember-addon
Ember Intl
Localization library for any Ember Application or Addon
Stars: ✭ 412 (+3645.45%)
Mutual labels:  i18n, ember, ember-addon
ember-changeset-conditional-validations
Conditional validations for ember-changeset-validations
Stars: ✭ 26 (+136.36%)
Mutual labels:  ember, validation, ember-addon
Fluent Rs
Rust implementation of Project Fluent
Stars: ✭ 503 (+4472.73%)
Mutual labels:  i18n, internationalization
Ember Cp Validations
Ember computed property based validations
Stars: ✭ 442 (+3918.18%)
Mutual labels:  ember, ember-addon
Laravel Js Localization
🌐 Convert your Laravel messages and consume them in the front-end!
Stars: ✭ 451 (+4000%)
Mutual labels:  i18n, internationalization
Easy localization
Easy and Fast internationalizing your Flutter Apps
Stars: ✭ 407 (+3600%)
Mutual labels:  i18n, internationalization
I18next
i18next: learn once - translate everywhere
Stars: ✭ 5,971 (+54181.82%)
Mutual labels:  i18n, internationalization
Gettext
PHP library to collect and manipulate gettext (.po, .mo, .php, .json, etc)
Stars: ✭ 578 (+5154.55%)
Mutual labels:  i18n, internationalization
Vue I18n
🌐 Internationalization plugin for Vue.js
Stars: ✭ 6,502 (+59009.09%)
Mutual labels:  i18n, internationalization
Django Rosetta
Rosetta is a Django application that eases the translation process of your Django projects
Stars: ✭ 806 (+7227.27%)
Mutual labels:  i18n, internationalization
Svelte I18n
Internationalization library for Svelte
Stars: ✭ 433 (+3836.36%)
Mutual labels:  i18n, internationalization
Babel Plugin React Intl
Extracts string messages from React components that use React Intl.
Stars: ✭ 430 (+3809.09%)
Mutual labels:  i18n, internationalization
Ember Bootstrap
Ember-cli addon for using Bootstrap as native Ember components.
Stars: ✭ 475 (+4218.18%)
Mutual labels:  ember, ember-addon
Frenchkiss.js
The blazing fast lightweight internationalization (i18n) module for javascript
Stars: ✭ 776 (+6954.55%)
Mutual labels:  i18n, internationalization
Int
Tiny in-browser internationalization.
Stars: ✭ 16 (+45.45%)
Mutual labels:  i18n, internationalization
Fluent.js
JavaScript implementation of Project Fluent
Stars: ✭ 622 (+5554.55%)
Mutual labels:  i18n, internationalization
Moment.php
Parse, validate, manipulate, and display dates in PHP w/ i18n support. Inspired by moment.js
Stars: ✭ 900 (+8081.82%)
Mutual labels:  i18n, internationalization
Ember Decorators
Useful decorators for Ember applications.
Stars: ✭ 360 (+3172.73%)
Mutual labels:  ember, ember-addon
React Localize Redux
Dead simple localization for your React components
Stars: ✭ 384 (+3390.91%)
Mutual labels:  i18n, internationalization

ember-i18n-changeset-validations

CircleCI Coveralls branch npm Ember Ember Observer Score Greenkeeper badge

Adds support for ember-i18n to ember-changeset-validations

ember-i18n-changeset-validations is a companion validation library to ember-changeset-validations. This addon adds the ability to translate ember-changeset-validation messages using the ember-i18n addon. Since ember-changeset is required to use this addon, please see documentation there on how to use changeset.

Usage

To install: ember install ember-i18n-changeset-validations.

This addon also provides ember-changeset-validations (and ember-changeset) as dependencies.

Define ember-i18n translation files for the validation messages files in app/locales/<LANG_CODE>/validations.js (where LANG_CODE is an ISO language code).

An example of an ember-i18n translation file, showing a translation key that will replace the default "between" message from ember-changeset-validations.

// app/locales/en/validations.js
export default {
  /* overrides for ember-changeset-validation messages
   * see: ember-changeset-validations/utils/messages
   */
  between: "{description} must be between{min} and {max} characters",
};

An example of a Japanese validation message.

// app/locales/ja/validations.js
export default {
  /* overrides for ember-changeset-validation messages
   * see: ember-changeset-validations/utils/messages
   */
  between: "{description}は{min}〜{max}文字の間でなければなりません",
};

For each locale (en & ja in this example), import the validations translation module into the main ember-i18n manifest, located in app/locales/<LANG_CODE>/translations.js.

e.g English translations manifest file.

// app/locales/en/validations.js
import validations from "./validations";
// other imports

export default {
  // other translation objects
  validations
};

e.g. Japanese translations manifest file.

// app/locales/ja/validations.js
import validations from "./validations";
// other imports

export default {
  // other translation objects
  validations
};

Contributing

See the Contributing guide for details.

License

This project is licensed under the MIT License.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].