humanize_duration library

Classes

ArLanguage
Arabic
DuLanguage
Dutch
EnLanguage
English
EsLanguage
Spanish
FaLanguage
Farsi/Persian
FrLanguage
French
GeLanguage
German
GrLanguage
Greek
HumanizeLanguage
HumanizeOptions
ItLanguage
Italian
JpLanguage
Japanese
KoLanguage
Korean
PtLanguage
Portuguese
RuLanguage
Russian
TrLanguage
Turkish
ZhCnLanguage
Chinese, simplified
ZhTwLanguage
Chinese, traditional

Enums

Units

Functions

getLanguageByLocale(String local) HumanizeLanguage
get language directly by alpha2 Ex: ar, en , es , fr ....
getSupportedLanguages() List<String>
list all the supported languages
humanizeDuration(Duration duration, {HumanizeOptions options = const HumanizeOptions(), HumanizeLanguage language = const EnLanguage()}) String
By default, Humanize Duration will humanize down to the millisecond. It will humanize in English by default. For example,