Fixes some bugs regarding displaying the exact time remaining

This commit is contained in:
2022-10-20 12:03:16 +02:00
parent 64004e4267
commit 9f433cb0f1
3 changed files with 4 additions and 4 deletions

View File

@ -124,7 +124,7 @@ public final class TimeFormatter {
String durationFormat = Translator.getTranslatedMessage(TranslatableMessage.DURATION_FORMAT);
durationFormat = replacePlaceholder(durationFormat, "{unit}",
Translator.getTranslatedMessage(translatableMessage));
return replacePlaceholder(durationFormat, "{duration}", castToInt ? String.valueOf((int) duration) :
return replacePlaceholder(durationFormat, "{time}", castToInt ? String.valueOf((int) duration) :
String.valueOf(duration));
}

View File

@ -8,7 +8,7 @@ public enum TimeInterval {
/**
* Less than 10 seconds left
*/
INTERVAL_LESS_THAN_10_SECONDS("momentarily", 10),
INTERVAL_LESS_THAN_10_SECONDS("in just a moment", 10),
/**
* Less than 30 seconds left