How to enable multilingual in ember input filed?


#1

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.


#2

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?


#3

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?


#4

I think you need to write your own validators to achieve this and use something like https://github.com/DockYard/ember-changeset-validations/


#5

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.


#6

Take a look at form-for https://www.npmjs.com/package/ember-form-for#i18n