1
0
Fork 0
mirror of https://github.com/jellyfin/jellyfin-web synced 2025-03-30 19:56:21 +00:00

Initial support for RTL layouts

This commit is contained in:
Hadi Charara 2022-07-02 15:50:52 -04:00
parent 941fe35103
commit 0f994ccb5b
19 changed files with 212 additions and 25 deletions

View file

@ -84,7 +84,7 @@ import globalize from './globalize';
hours = Math.floor(hours);
if (hours) {
parts.push(hours);
parts.push(hours.toLocaleString());
}
ticks -= (hours * ticksPerHour);
@ -95,7 +95,9 @@ import globalize from './globalize';
ticks -= (minutes * ticksPerMinute);
if (minutes < 10 && hours) {
minutes = '0' + minutes;
minutes = (0).toLocaleString() + minutes.toLocaleString();
} else {
minutes = minutes.toLocaleString();
}
parts.push(minutes);
@ -103,7 +105,9 @@ import globalize from './globalize';
seconds = Math.floor(seconds);
if (seconds < 10) {
seconds = '0' + seconds;
seconds = (0).toLocaleString() + seconds.toLocaleString();
} else {
seconds = seconds.toLocaleString();
}
parts.push(seconds);