An input field in ember should accept all language inputs which needs to be stored in the db.
Please anyone know about the feature or any api availabel for giving this support in Ember?
Thanks in advance.
An input field in ember should accept all language inputs which needs to be stored in the db.
Please anyone know about the feature or any api availabel for giving this support in Ember?
Thanks in advance.
Any input field supports all languages so this question is not clear to me. Do you want to translate the input field before you store it?
I need an input box which should accept other languages. Not translating. For eg, If my locale is fr_FR. It should accept the respective characters and should not allow other language characters for example english characters.
Based on the locale, it should validate the characters given by the user. Can we do that?
I think you need to write your own validators to achieve this and use something like GitHub - poteto/ember-changeset-validations: Validations for ember-changeset
we achieve that validation using regular experssion. For example: export const Namevalidation = /[a-zA-Z0-9_]/; But my question is, how do we change this based on the locale.
Take a look at form-for
ember-form-for - npm