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) {
|
function getUnitsForMB(s) {
|
||||||
if (s < MINUTES_THRESHOLD) {
|
if (s < MINUTES_THRESHOLD) {
|
||||||
if (secondsToProcess > 1) return 'seconds';
|
if (secondsToProcess > 1) return __('seconds');
|
||||||
return 'second';
|
return __('second');
|
||||||
} else if (s >= MINUTES_THRESHOLD && s < HOURS_THRESHOLD) {
|
} else if (s >= MINUTES_THRESHOLD && s < HOURS_THRESHOLD) {
|
||||||
if (Math.floor(secondsToProcess / 60) > 1) return 'minutes';
|
if (Math.floor(secondsToProcess / 60) > 1) return __('minutes');
|
||||||
return 'minute';
|
return __('minute');
|
||||||
} else {
|
} else {
|
||||||
if (Math.floor(secondsToProcess / 3600) > 1) return 'hours';
|
if (Math.floor(secondsToProcess / 3600) > 1) return __('hours');
|
||||||
return 'hour';
|
return __('hour');
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue