feat: localize UI and improve playback
Continuous Integration / build_web (push) Failing after 1s
Continuous Integration / build (macos-latest) (push) Skipped
Continuous Integration / build (ubuntu-22.04) (push) Skipped
Continuous Integration / build (windows-11-arm) (push) Skipped
Continuous Integration / build (windows-latest) (push) Skipped
Continuous Integration / nightly_release (push) Skipped
Continuous Integration / build_web (push) Failing after 1s
Continuous Integration / build (macos-latest) (push) Skipped
Continuous Integration / build (ubuntu-22.04) (push) Skipped
Continuous Integration / build (windows-11-arm) (push) Skipped
Continuous Integration / build (windows-latest) (push) Skipped
Continuous Integration / nightly_release (push) Skipped
- translate the interface into Russian - add picture-in-picture and video fit modes - derive skip segments from Jellyfin chapter markers - align player navigation and add a window drag region - keep audio playback alive across routes
This commit is contained in:
1 parent
5784036eb1
commit
d9bce4de04
100 files changed
+1364
-706
No files matched your search
@@ -81,7 +81,7 @@ const QueueView = ({ variant, onClose }: QueueViewProps) => {
|
||||
const remove = (item: BaseItemDto, index: number) => {
|
||||
removeFromQueue(index);
|
||||
const { title } = getQueueItemText(item);
|
||||
enqueueSnackbar(`Removed "${title}"`, {
|
||||
enqueueSnackbar(`«${title}» удалён`, {
|
||||
variant: "default",
|
||||
action: (key) => (
|
||||
<Button
|
||||
@@ -92,7 +92,7 @@ const QueueView = ({ variant, onClose }: QueueViewProps) => {
|
||||
closeSnackbar(key);
|
||||
}}
|
||||
>
|
||||
Undo
|
||||
Отменить
|
||||
</Button>
|
||||
),
|
||||
});
|
||||
@@ -101,7 +101,7 @@ const QueueView = ({ variant, onClose }: QueueViewProps) => {
|
||||
const clearAll = () => {
|
||||
const removed = upcoming;
|
||||
clearUpcoming();
|
||||
enqueueSnackbar(`Cleared ${removed.length} tracks from up next`, {
|
||||
enqueueSnackbar(`Очищено треков из очереди: ${removed.length}`, {
|
||||
action: (key) => (
|
||||
<Button
|
||||
color="inherit"
|
||||
@@ -115,7 +115,7 @@ const QueueView = ({ variant, onClose }: QueueViewProps) => {
|
||||
closeSnackbar(key);
|
||||
}}
|
||||
>
|
||||
Undo
|
||||
Отменить
|
||||
</Button>
|
||||
),
|
||||
});
|
||||
@@ -135,35 +135,35 @@ const QueueView = ({ variant, onClose }: QueueViewProps) => {
|
||||
const summary =
|
||||
upcoming.length > 0
|
||||
? `${upcoming.length} ${upcoming.length === 1 ? "track" : "tracks"} · ${getRuntimeCompact(upcomingTicks)}`
|
||||
: "Nothing queued";
|
||||
: "Очередь пуста";
|
||||
|
||||
return (
|
||||
<div className={`queue queue-${variant}`}>
|
||||
<header className="queue-header">
|
||||
<div className="queue-header-text">
|
||||
<h2 className="queue-title">
|
||||
{variant === "drawer" ? "Queue" : "Up next"}
|
||||
{variant === "drawer" ? "Очередь" : "Далее"}
|
||||
</h2>
|
||||
<span className="queue-summary">{summary}</span>
|
||||
</div>
|
||||
<div className="queue-header-actions">
|
||||
<Tooltip title="Shuffle up next">
|
||||
<Tooltip title="Перемешать очередь">
|
||||
<span>
|
||||
<IconButton
|
||||
onClick={shuffleUpcoming}
|
||||
disabled={upcoming.length < 2}
|
||||
aria-label="Shuffle up next"
|
||||
aria-label="Перемешать очередь"
|
||||
>
|
||||
<span className="material-symbols-rounded">shuffle</span>
|
||||
</IconButton>
|
||||
</span>
|
||||
</Tooltip>
|
||||
<Tooltip title="Clear up next">
|
||||
<Tooltip title="Очистить очередь">
|
||||
<span>
|
||||
<IconButton
|
||||
onClick={clearAll}
|
||||
disabled={upcoming.length === 0}
|
||||
aria-label="Clear up next"
|
||||
aria-label="Очистить очередь"
|
||||
>
|
||||
<span className="material-symbols-rounded">
|
||||
playlist_remove
|
||||
@@ -172,7 +172,7 @@ const QueueView = ({ variant, onClose }: QueueViewProps) => {
|
||||
</span>
|
||||
</Tooltip>
|
||||
{onClose && (
|
||||
<IconButton onClick={onClose} aria-label="Close queue">
|
||||
<IconButton onClick={onClose} aria-label="Закрыть очередь">
|
||||
<span className="material-symbols-rounded">close</span>
|
||||
</IconButton>
|
||||
)}
|
||||
@@ -182,14 +182,14 @@ const QueueView = ({ variant, onClose }: QueueViewProps) => {
|
||||
<div className="queue-body">
|
||||
{variant === "drawer" && current && (
|
||||
<section className="queue-section">
|
||||
<h3 className="queue-section-label">Now playing</h3>
|
||||
<h3 className="queue-section-label">Сейчас играет</h3>
|
||||
<QueueRow item={current} variant="current" />
|
||||
</section>
|
||||
)}
|
||||
|
||||
<section className="queue-section">
|
||||
{variant === "drawer" && (
|
||||
<h3 className="queue-section-label">Up next</h3>
|
||||
<h3 className="queue-section-label">Далее</h3>
|
||||
)}
|
||||
{upcoming.length > 0 ? (
|
||||
<>
|
||||
@@ -219,7 +219,7 @@ const QueueView = ({ variant, onClose }: QueueViewProps) => {
|
||||
</SortableContext>
|
||||
</DndContext>
|
||||
<p className="queue-hint">
|
||||
Click a track to play it now · drag to reorder
|
||||
Нажмите на трек, чтобы включить его, перетащите для сортировки
|
||||
</p>
|
||||
</>
|
||||
) : (
|
||||
@@ -227,9 +227,9 @@ const QueueView = ({ variant, onClose }: QueueViewProps) => {
|
||||
<span className="material-symbols-rounded queue-empty-icon">
|
||||
queue_music
|
||||
</span>
|
||||
<span className="queue-empty-title">Nothing up next</span>
|
||||
<span className="queue-empty-title">Очередь пуста</span>
|
||||
<span className="queue-empty-text">
|
||||
Play an album, playlist or artist to fill the queue.
|
||||
Включите альбом, плейлист или исполнителя, чтобы заполнить очередь.
|
||||
</span>
|
||||
</div>
|
||||
)}
|
||||
@@ -244,7 +244,7 @@ const QueueView = ({ variant, onClose }: QueueViewProps) => {
|
||||
aria-expanded={showHistory}
|
||||
>
|
||||
<span className="queue-section-label">
|
||||
Previously played · {history.length}
|
||||
Ранее играло · {history.length}
|
||||
</span>
|
||||
<span className="material-symbols-rounded">
|
||||
{showHistory ? "expand_less" : "expand_more"}
|
||||
|
||||
Reference in new issue
Block a user