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
@@ -83,7 +83,7 @@ export const createSyncPlayGroup = async (api: Api, name: string) => {
|
||||
try {
|
||||
const group = (
|
||||
await syncApi(api).syncPlayCreateGroup({
|
||||
newGroupRequestDto: { GroupName: name.trim() || "Watch together" },
|
||||
newGroupRequestDto: { GroupName: name.trim() || "Смотреть вместе" },
|
||||
})
|
||||
).data;
|
||||
if (group) {
|
||||
@@ -97,7 +97,7 @@ export const createSyncPlayGroup = async (api: Api, name: string) => {
|
||||
return group;
|
||||
} catch (error) {
|
||||
console.error("Could not create SyncPlay group", error);
|
||||
store.setError("Could not create a group");
|
||||
store.setError("Не удалось создать группу");
|
||||
return undefined;
|
||||
} finally {
|
||||
store.setLoading(false);
|
||||
@@ -122,7 +122,7 @@ export const joinSyncPlayGroup = async (api: Api, groupId: string) => {
|
||||
await refreshSyncPlayGroups(api);
|
||||
} catch (error) {
|
||||
console.error("Could not join SyncPlay group", error);
|
||||
store.setError("Could not join this group");
|
||||
store.setError("Не удалось войти в группу");
|
||||
} finally {
|
||||
store.setLoading(false);
|
||||
}
|
||||
@@ -151,7 +151,7 @@ export const startSyncPlayQueue = async (api: Api) => {
|
||||
.map((item) => item.Id)
|
||||
.filter((id): id is string => Boolean(id));
|
||||
if (ids.length === 0) {
|
||||
store.setError("Start something first, then share the queue");
|
||||
store.setError("Сначала включите что-нибудь, затем поделитесь очередью");
|
||||
return;
|
||||
}
|
||||
const position = getLocalPlayback();
|
||||
@@ -173,7 +173,7 @@ export const startSyncPlayQueue = async (api: Api) => {
|
||||
}
|
||||
} catch (error) {
|
||||
console.error("Could not start SyncPlay queue", error);
|
||||
store.setError("Could not start the group queue");
|
||||
store.setError("Не удалось запустить очередь группы");
|
||||
} finally {
|
||||
store.setLoading(false);
|
||||
}
|
||||
@@ -205,7 +205,7 @@ export const watchSyncPlayQueueHere = async (api: Api, userId: string) => {
|
||||
}
|
||||
} catch (error) {
|
||||
console.error("Could not start the group queue here", error);
|
||||
store.setError("Could not start playback");
|
||||
store.setError("Не удалось запустить воспроизведение");
|
||||
} finally {
|
||||
store.setLoading(false);
|
||||
}
|
||||
@@ -364,7 +364,7 @@ export const handleSyncPlayGroupUpdate = async (
|
||||
applyingRemoteUntil = 0;
|
||||
break;
|
||||
case "LibraryAccessDenied":
|
||||
useSyncPlayStore.getState().setError("No access to this group's library");
|
||||
useSyncPlayStore.getState().setError("Нет доступа к библиотеке группы");
|
||||
break;
|
||||
}
|
||||
};
|
||||
|
||||
Reference in new issue
Block a user