We want to be able to configure Numbify for German language with Solid text via NumbifyBuilder:
Numbify de = new NumbifyBuilder()
.german(Currency.NUMBER)
.build();
de.toText(1_024); // eintausendvierundzwanzig
Requirements
- Add
public NumbifyBuilder german(Currency currency) to NumbifyBuilder.
- By default this method should use
SolidText as text engine for int and decimal part of the number.
- Add simple test to
GermanTest, DeCurrencyTest and DeCurrencyDecimalTest.
We want to be able to configure
Numbifyfor German language with Solid text viaNumbifyBuilder:Requirements
public NumbifyBuilder german(Currency currency)toNumbifyBuilder.SolidTextas text engine for int and decimal part of the number.GermanTest,DeCurrencyTestandDeCurrencyDecimalTest.