HumanizeDuration extension

add extension humanize to Duration it will return the duration in a human-readable format like "1 minute, 2 seconds" it support multipe languages like "en", "fr", "ar"

on

Methods

humanize({bool abbreviated = false, bool round = false, String language = "en", String locale = "en"}) String
pluralize(int number, String word, String language, String locale) String
roundSeconds() int