translit-rue
v4.0.0
Published
Translit is a JavaScript library that transliterates the Rusyn language between the Latin alphabet and the Cyrillic script.
Readme
translit-rue — Rusyn transliteration
The Rusyn language is written in the Cyrillic script, which can be challenging to type if you don’t have the right keyboard or software.
That’s where Translit comes in—a JavaScript library designed to easily transliterate Rusyn text between the Latin alphabet and Cyrillic script. Simply type in Latin letters, and Translit will convert your text to Cyrillic (or the other way around) instantly.
Use
Online app
Try Translit at https://tota.sk/translit.
NPM package
Include translit as an NPM package in your web project:
npm install translit-rueimport { translit } from "translit-rue"; // ES module (recommended)
const { translit } = require("translit-rue"); // CommonJSTranslit ships TypeScript definitions, so translit() is fully typed out of the box.
JS library
Load the UMD build directly in the browser. It exposes a global translit object:
<script src="https://unpkg.com/translit-rue/dist/translit.umd.js"></script>
<script>
translit.translit("Korovkŷ", "latCyr");
</script>Documentation
Transliterate text between the Cyrillic script and the Latin alphabet using the translit(string, direction) function. Specify the transliteration direction using the direction parameter.
Transliterate from Cyrillic to Latin:
translit("Коровкы", "cyrLat"); // Output: KorovkŷTransliterate from Latin to Cyrillic:
translit("Korovkŷ", "latCyr"); // Output: КоровкыSupport & Feedback
If you like Translit, buy me a coffee to keep the project running.
License
Licensed under MIT license. (See LICENCE.TXT.)
Special thanks
- @vit-svoboda for a help with the build pipeline (2.0.0)
