private TranslatableComponent formatPart(long amount, ChronoUnit unit) {
        String format = this.concise ? "short" : amount == 1 ? "singular" : "plural";
        String translationKey = "luckperms.duration.unit." + unit.name().toLowerCase(Locale.ROOT) + "." + format;
        return Component.translatable(translationKey, Component.text(amount));
    }
Formats {@code duration} as a {@link Component}.

@param duration the duration
@return the formatted component
common/src/main/java/me/lucko/luckperms/common/util/DurationFormatter.java