Skip to content

Latest commit

 

History

History
13 lines (9 loc) · 809 Bytes

README.md

File metadata and controls

13 lines (9 loc) · 809 Bytes

js-character-translator

This project helps you to translate a library of characters.It is sensitive to changes on your page. If an element changes on your page, It updates characters in the updated element if there is any. It is also sensitive to input and textarea fields, if anyone type in an input or textarea on your page, they'll see translated characters instead of what they have typed. Sample: http://codepen.io/alirezakasaaian/pen/EyvNrb

How to use it

Requirment: jQuery

1- Add string.js after jQuery and before end of body tag. It is containing a library for your characters and their translations. It is a sample code which translates english numbers on left hand to persian numbers on right hand. you can translate any character to any:

2- Add translate.js after string.js enjoy it :)