Simple dart package for converting Cyrillic symbols to Translit and back
Reverse transliteration into Cyrillic can not always completely convert the text to the original. Please keep this in mind when using this module in your projects.
- See CHANGELOG.md for major/breaking updates
- Example with explain all features
$ dart pub add translit
$ flutter pub add --dev translit
By default, the conversion uses a non-symmetrical algorithm. To use the symmetrical algorithm, set the isSymmetrical parameter to true.
String text = Translit().toTranslit(source: 'Привет мир');
Привет мир > Privet mir!
String text = Translit().unTranslit(source: 'Privet mir');
Privet mir > Привет мир
Please feel free to fork, improve, make pull requests or fill issues. I'll be glad to fix bugs you encountered or improve the extension.