Skip to content

mohammad1ta/switchLangKeys

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 

Repository files navigation

switch language from persian to english characters and conversely

Convert and fix persian/english wrong text

Usage

First include switchLangKeys.js file in your webpage, then use like below samples:

var testStr1 = "اثممخ صخقمی";
var testStr2 = "jsj lda,n";

console.log( testStr1.switchFaToEn() ); // Output: Hello World
console.log( testStr2.switchEnToFa() ); // Output: تست میشود