Javascript transliteration library
Iuliia
import iuliia from "iuliia"; // list all supported schemas for (let schemaName of iuliia.Schemas.names()) { console.log(schemaName); } // transliterate using specified schema let source = "Юлия Щеглова"; iuliia.translate(source, iuliia.ICAO_DOC_9303); // "Iuliia Shcheglova" // or pick schema by name let schema = iuliia.Schemas.get("wikipedia"); iuliia.translate(source, schema); // "Yuliya Shcheglova"
20 мая 2020, 15:17