Swalekh
Last updated
Last updated
SwalekhWeb is a jQuery plugin that enables Indic typing text fields (<input/>, <textarea/>, <div contenteditable/>) on webpages. Currently supporting 22 Indian languages the plugin supports both Phonetic typing and Virtual keyboard as well.
Hindi | Assamese | Odia | Kannada |
Bengali | Gujarati | Tamil | Malayalam |
Punjabi | Marathi | Telugu | Urdu |
Bodo | Dogri | Kashmiri | Konkani |
Maithili | Manipuri | Nepali | Sanskrit |
Santali | Sindhi | English |
To install Swalekh web follow the steps -
Include jQuery CDN v3.4 or above in your webpage.
Include swalekh.js CDN (Provided by us) in your webpage.
Initialize Swalekh using the following snippet.
Note: Here, the ‘API Key’ and ‘App Id’ are provided by the Reverie team.
Once your text fields are initialized, you may use the following APIs to change the language or typing modes.
To capture the change_lang event an additional callback is also enabled for enhanced usage.
Find the appropriate language codes below.
Swalekh Web supports the phonetic and native modes of typing.
To capture the change_mode event an additional callback is also enabled for enhanced usage.
Language | Language Code |
---|---|
Hindi | hi |
Assamese | as |
Bengali | bn |
Gujarati | gu |
Kannada | kn |
Malayalam | ml |
Marathi | mr |
Odia | or |
Punjabi | pa |
Tamil | ta |
Telugu | te |
English | en |
Urdu | ur |
Bodo | brx |
Dogri | doi |
Nepali | ne |
Manipuri | mni |
Maithili | mai |
Sanskrit | sa |
Sindhi | sd |
Santali | sat |
Kashmiri | ks |