Skip to content

Simple Dart package for converting Cyrillic symbols to Translit and back

License

Notifications You must be signed in to change notification settings

alexey-nobody/translit-dart

Repository files navigation

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

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.

About

Simple Dart package for converting Cyrillic symbols to Translit and back

Topics

Resources

License

Stars

Watchers

Forks

Languages