Skip to content

Getting Started with Tradukisto!

Julia Glaszka edited this page Jul 11, 2023 · 7 revisions

Note: Tradukisto can handle only values with no more than two digits after the decimal point.

Add tradukisto as a dependency

dependencies {
    implementation("pl.allegro.finance:tradukisto:2.2.0")
}

Initialize tradukisto converter in your code

Select expected language - for example FRENCH_INTEGER:

ValueConverters intConverter = ValueConverters.FRENCH_INTEGER;

Use the converter

You can now easily reuse the converter in your code wherever you need it:

String valueAsWords = intConverter.asWords(1_234);

That's all! 😃