https://github.com/solid-software/tradukisto
Partial quick port of Tradukisto Java library to Dart
https://github.com/solid-software/tradukisto
Last synced: 8 months ago
JSON representation
Partial quick port of Tradukisto Java library to Dart
- Host: GitHub
- URL: https://github.com/solid-software/tradukisto
- Owner: solid-software
- License: apache-2.0
- Created: 2024-08-16T02:01:53.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2024-08-16T02:17:51.000Z (almost 2 years ago)
- Last Synced: 2024-08-17T02:34:25.310Z (almost 2 years ago)
- Language: Dart
- Size: 15.6 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
Convert numbers to text with Tradukisto. This library is a quick port of Tradukisto in Java (https://github.com/allegro/tradukisto).
Quick port means that it was done very quickly and not all features / dart language niceties are used.
Folder structure and class names are preserved to help with future porting.
## Features
Supports:
- Ukrainian
- English
It's pretty easy to add a new language - as it just requires to port one file a do some small plumbing. See files to port here: https://github.com/allegro/tradukisto/tree/master/src/main/java/pl/allegro/finance/tradukisto/internal/languages
## Usage
```dart
ValueConverters converter = ValueConverters.ENGLISH_INTEGER;
print(converter.asWords(221)); //prints: two hundred twenty-one
```