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
@@ -50,8 +50,10 @@ body.has-player-bar .home-cinema {
|
||||
}
|
||||
|
||||
// Keep the menu clear of the macOS traffic lights now that the frame
|
||||
// reaches the window edges.
|
||||
// reaches the window edges, and align it vertically with them.
|
||||
html.is-macos & {
|
||||
padding-top: 0.6rem;
|
||||
|
||||
&-left {
|
||||
padding-left: 64px;
|
||||
}
|
||||
|
||||
@@ -42,7 +42,7 @@ const HomeHeader = ({ libraries, onNewAndPopular }: HomeHeaderProps) => {
|
||||
<header className="home-header" data-tauri-drag-region>
|
||||
<div className="home-header-left" data-tauri-drag-region>
|
||||
<IconButton
|
||||
aria-label="Open navigation"
|
||||
aria-label="Открыть меню"
|
||||
onClick={() => setDrawerOpen(true)}
|
||||
>
|
||||
<span className="material-symbols-rounded">menu</span>
|
||||
@@ -53,7 +53,7 @@ const HomeHeader = ({ libraries, onNewAndPopular }: HomeHeaderProps) => {
|
||||
className="home-nav-link"
|
||||
onClick={openMovies}
|
||||
>
|
||||
Movies
|
||||
Фильмы
|
||||
</button>
|
||||
)}
|
||||
{showsLibrary?.Id && (
|
||||
@@ -62,7 +62,7 @@ const HomeHeader = ({ libraries, onNewAndPopular }: HomeHeaderProps) => {
|
||||
className="home-nav-link"
|
||||
onClick={openShows}
|
||||
>
|
||||
Shows
|
||||
Сериалы
|
||||
</button>
|
||||
)}
|
||||
<button
|
||||
@@ -70,7 +70,7 @@ const HomeHeader = ({ libraries, onNewAndPopular }: HomeHeaderProps) => {
|
||||
className="home-nav-link"
|
||||
onClick={onNewAndPopular}
|
||||
>
|
||||
New & Popular
|
||||
Новинки
|
||||
</button>
|
||||
</div>
|
||||
|
||||
@@ -104,18 +104,18 @@ const HomeHeader = ({ libraries, onNewAndPopular }: HomeHeaderProps) => {
|
||||
|
||||
<div className="home-header-right">
|
||||
<IconButton
|
||||
aria-label="Watch together"
|
||||
title="Watch together"
|
||||
aria-label="Смотреть вместе"
|
||||
title="Смотреть вместе"
|
||||
onClick={openSyncPlayDialog}
|
||||
>
|
||||
<span className="material-symbols-rounded">groups</span>
|
||||
</IconButton>
|
||||
<IconButton aria-label="Search" onClick={toggleSearchDialog}>
|
||||
<IconButton aria-label="Поиск" onClick={toggleSearchDialog}>
|
||||
<span className="material-symbols-rounded">search</span>
|
||||
</IconButton>
|
||||
<CastButton />
|
||||
<IconButton
|
||||
aria-label="Favorites"
|
||||
aria-label="Избранное"
|
||||
onClick={() => navigate({ to: "/favorite" })}
|
||||
>
|
||||
<span className="material-symbols-rounded">favorite</span>
|
||||
|
||||
@@ -195,7 +195,7 @@ function HomeContent({ api, user }: { api: Api; user: UserDto }) {
|
||||
<section
|
||||
className="home-skeleton"
|
||||
aria-busy="true"
|
||||
aria-label="Loading home"
|
||||
aria-label="Загрузка главной"
|
||||
>
|
||||
<div className="home-skeleton-copy">
|
||||
<span className="home-skeleton-pill" />
|
||||
@@ -235,11 +235,11 @@ function HomeContent({ api, user }: { api: Api; user: UserDto }) {
|
||||
<ErrorBoundary
|
||||
fallback={
|
||||
<div className="error">
|
||||
<Typography>Error with Carousel</Typography>
|
||||
<Typography>Ошибка карусели</Typography>
|
||||
</div>
|
||||
}
|
||||
>
|
||||
<CardScroller displayCards={4} title="Libraries">
|
||||
<CardScroller displayCards={4} title="Библиотеки">
|
||||
{libraries.data?.Items?.map((item) => {
|
||||
return (
|
||||
<Card
|
||||
@@ -263,12 +263,12 @@ function HomeContent({ api, user }: { api: Api; user: UserDto }) {
|
||||
<ErrorBoundary
|
||||
fallback={
|
||||
<div className="error">
|
||||
<Typography>Error with Libraries</Typography>
|
||||
<Typography>Ошибка библиотек</Typography>
|
||||
</div>
|
||||
}
|
||||
>
|
||||
{upNextItems.isSuccess && upNextItems.data?.TotalRecordCount && (
|
||||
<CardScroller displayCards={4} title="Up Next">
|
||||
<CardScroller displayCards={4} title="Далее">
|
||||
{upNextItems.data?.Items?.map((item) => {
|
||||
return (
|
||||
<Card
|
||||
@@ -296,10 +296,10 @@ function HomeContent({ api, user }: { api: Api; user: UserDto }) {
|
||||
: item.Type === BaseItemKind.Series
|
||||
? `${item.ProductionYear} - ${
|
||||
item.EndDate
|
||||
? new Date(item.EndDate).toLocaleString([], {
|
||||
? new Date(item.EndDate).toLocaleString("ru-RU", {
|
||||
year: "numeric",
|
||||
})
|
||||
: "Present"
|
||||
: "н.в."
|
||||
}`
|
||||
: item.ProductionYear
|
||||
}
|
||||
@@ -315,7 +315,7 @@ function HomeContent({ api, user }: { api: Api; user: UserDto }) {
|
||||
<ErrorBoundary
|
||||
fallback={
|
||||
<div className="error">
|
||||
<Typography>Error with resumeItemsVideo</Typography>
|
||||
<Typography>Ошибка продолжения просмотра</Typography>
|
||||
</div>
|
||||
}
|
||||
>
|
||||
@@ -323,7 +323,7 @@ function HomeContent({ api, user }: { api: Api; user: UserDto }) {
|
||||
!resumeItemsVideo.data?.TotalRecordCount ? (
|
||||
<></>
|
||||
) : (
|
||||
<CardScroller displayCards={4} title="Continue Watching">
|
||||
<CardScroller displayCards={4} title="Продолжить просмотр">
|
||||
{resumeItemsVideo.data?.Items?.map((item) => {
|
||||
return (
|
||||
<Card
|
||||
@@ -347,10 +347,10 @@ function HomeContent({ api, user }: { api: Api; user: UserDto }) {
|
||||
: item.Type === BaseItemKind.Series
|
||||
? `${item.ProductionYear} - ${
|
||||
item.EndDate
|
||||
? new Date(item.EndDate).toLocaleString([], {
|
||||
? new Date(item.EndDate).toLocaleString("ru-RU", {
|
||||
year: "numeric",
|
||||
})
|
||||
: "Present"
|
||||
: "н.в."
|
||||
}`
|
||||
: item.ProductionYear
|
||||
}
|
||||
@@ -366,7 +366,7 @@ function HomeContent({ api, user }: { api: Api; user: UserDto }) {
|
||||
<ErrorBoundary
|
||||
fallback={
|
||||
<div className="error">
|
||||
<Typography>Error with resumeItemsAudio</Typography>
|
||||
<Typography>Ошибка продолжения прослушивания</Typography>
|
||||
</div>
|
||||
}
|
||||
>
|
||||
@@ -374,7 +374,7 @@ function HomeContent({ api, user }: { api: Api; user: UserDto }) {
|
||||
!resumeItemsAudio.data?.TotalRecordCount ? (
|
||||
<></>
|
||||
) : (
|
||||
<CardScroller displayCards={4} title="Continue Listening">
|
||||
<CardScroller displayCards={4} title="Продолжить прослушивание">
|
||||
{resumeItemsAudio.data?.Items?.map((item) => {
|
||||
return (
|
||||
<Card
|
||||
@@ -395,7 +395,7 @@ function HomeContent({ api, user }: { api: Api; user: UserDto }) {
|
||||
<ErrorBoundary
|
||||
fallback={
|
||||
<div className="error">
|
||||
<Typography>Error with LatestMediaSections</Typography>
|
||||
<Typography>Ошибка новых материалов</Typography>
|
||||
</div>
|
||||
}
|
||||
>
|
||||
|
||||
Reference in new issue
Block a user