npm install keyboard-translator
or
yarn add keyboard-translator
This library is for the segment of users with dual keyboard layouts who mistakenly write words without changing the keyboard layout. It automatically translates all the necessary text fragments, thus saving users a lot of time.
import keyboardTranslator from 'keyboard-translator';
const text = 'Руддщ Цщкдв!'; // Incorrect sentence
const fixedSentence = keyboardTranslator.translateSentence(text);
console.log(fixedSentence); // Correct sentence: Hello World!
Full documentation see here.
As an open source project in a rapidly developing field, we are extremely open to contributions, whether it be in the form of a new feature, improved infra, or better documentation.
Check out our contributing guidelines for instructions on how to contribute.