Useful to prevent errors on english-only fields, like a credit card owner field.
var ru = ;bankcardName;
There are two ways to load a keyboard layout definition. If you plan on using a single layout, just load the file directly:
var ru = ;
Also you can get a object with all layouts (but app size will be bigger):
var layouts = ;layout = layoutsname;
Every layout has
ru //=> "hello"ru //=> "привет"
Currently supported keyboard layouts:
- English (QWERTY, Dvorak, Colemak)
If you want to add a new keyboard layout definition:
- Fork a project. Create a branch.
- Add a
CODE.jsonfile with layout buttons map. See example in
ru.json. Lower case letters will be converted to upper case automatically. However, all non-letters symbols should be added both in uppercase and lowercase.
yarn test. Project will be built automatically.
- Add layout to the list above.
- Send a pull request.