Skip to content

Commit

Permalink
perf: UnitsOfTimeFormatter instead of properties files
Browse files Browse the repository at this point in the history
  • Loading branch information
jy95 committed Feb 9, 2025
1 parent d8829f0 commit 9e20601
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ public static String formatWithCount(Locale locale, String unit, Number count) {
return NumberFormatter
.withLocale(locale)
.unit(UNIT_MAPPING.get(unit))
.unitWidth(NumberFormatter.UnitWidth.FULL_NAME)
.format(count)
.toString();
}
Expand Down

0 comments on commit 9e20601

Please sign in to comment.