Made text translatable

Strings can be translated now
This commit is contained in:
TigerxWood 2020-05-28 23:38:54 +03:00 committed by Sean Yesmunt
parent be10041ea4
commit 199953448c

View file

@ -99,14 +99,14 @@ function PublishFile(props: Props) {
function getUnitsForMB(s) {
if (s < MINUTES_THRESHOLD) {
if (secondsToProcess > 1) return 'seconds';
return 'second';
if (secondsToProcess > 1) return __('seconds');
return __('second');
} else if (s >= MINUTES_THRESHOLD && s < HOURS_THRESHOLD) {
if (Math.floor(secondsToProcess / 60) > 1) return 'minutes';
return 'minute';
if (Math.floor(secondsToProcess / 60) > 1) return __('minutes');
return __('minute');
} else {
if (Math.floor(secondsToProcess / 3600) > 1) return 'hours';
return 'hour';
if (Math.floor(secondsToProcess / 3600) > 1) return __('hours');
return __('hour');
}
}