NikolaySimakov / keyboard-translator

⌨️ Replaces words written with characters from another language

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

keyboard-translator.js

js-standard-style npm License: MIT

Install

npm install keyboard-translator

or

yarn add keyboard-translator

🤔 What is this?

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.

Basic usage

import keyboardTranslator from 'keyboard-translator';

const text = 'Руддщ Цщкдв!'; // Incorrect sentence
const fixedSentence = keyboardTranslator.translateSentence(text);
console.log(fixedSentence); // Correct sentence: Hello World!

📖 Full Documentation

Full documentation see here.

💁 Contributing

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.

About

⌨️ Replaces words written with characters from another language

License:MIT License


Languages

Language:JavaScript 100.0%