Made text translatable
Strings can be translated now
This commit is contained in:
parent
be10041ea4
commit
199953448c
1 changed files with 6 additions and 6 deletions
|
@ -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');
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue