Michał Powłoka
Michał Powłoka

Reputation: 1511

Localize numbers in Dart/Flutter

I need to parse some numbers in such a way:

1 -> "One", 2 -> "Two", etc.

I need those strings localized for different languages. Is there any tool that makes such a parsing?

Upvotes: 0

Views: 1209

Answers (1)

BambinoUA
BambinoUA

Reputation: 7100

Try to use intl package https://pub.dev/packages/intl. There is a function Intl.select. I think it can helps.

Upvotes: 1

Related Questions