translit 2.0.2
translit: ^2.0.2 copied to clipboard
Simple dart package for converting Cyrillic symbols to Translit and back
Translit #
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.
Links #
- See CHANGELOG.md for major/breaking updates
- Example with explain all features
Installation #
$ dart pub add translit
$ flutter pub add --dev translit
Usage #
Convert text to 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!
Convert text from transliterated #
String text = Translit().unTranslit(source: 'Privet mir');
Privet mir > Привет мир
Contribute #
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.