Skip to content

Commit

Permalink
change language to german
Browse files Browse the repository at this point in the history
  • Loading branch information
TheFrodo committed Dec 30, 2023
1 parent d50b749 commit bc9c9a9
Show file tree
Hide file tree
Showing 27 changed files with 49 additions and 49 deletions.
6 changes: 3 additions & 3 deletions src/components/Archive/VodPreview.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -14,15 +14,15 @@ export const VodPreview = ({ vod }: TwitchVODResponse) => {
</Title>
<div>
<div>
<span>Created At: </span>
<span>Erstellt: </span>
{vod.created_at}
</div>
<div>
<span>Duration: </span>
<span>Dauer: </span>
{vod.duration}
</div>
<div>
<span>Views: </span>
<span>Aufrufe: </span>
{vod.view_count}
</div>
</div>
Expand Down
4 changes: 2 additions & 2 deletions src/components/Authentication/Login.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ export function LoginForm(props: PaperProps) {
return (
<Paper radius="md" p="xl" withBorder {...props}>
<Text size="lg" fw={500}>
Welcome to Ganymede, login below
Willkommen bei VodArchiv, Logge dich ein
</Text>

{publicRuntimeConfig.SHOW_SSO_LOGIN_BUTTON != "false" && (
Expand Down Expand Up @@ -95,7 +95,7 @@ export function LoginForm(props: PaperProps) {
<Group justify="space-between" mt="xl">
<Link href="/register">
<Anchor component="button" type="button" c="dimmed" size="xs">
Don't have an account? Register
Du hast keinen Account? Registriere dich hier
</Anchor>
</Link>
<Button type="submit" radius="xl" loading={loading}>
Expand Down
4 changes: 2 additions & 2 deletions src/components/Authentication/Register.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ export function RegisterForm(props: PaperProps) {
return (
<Paper radius="md" p="xl" withBorder {...props}>
<Text size="lg" fw={500}>
Welcome to Ganymede, sign up below
Willkommen bei VodArchiv, Registriere dich hier
</Text>

<form onSubmit={handleSubmit}>
Expand Down Expand Up @@ -91,7 +91,7 @@ export function RegisterForm(props: PaperProps) {
<Group justify="space-between" mt="xl">
<Link href="/login">
<Anchor component="button" type="button" c="dimmed" size="xs">
Have an account? Login
Du hast bereits einen Account? Dann Logge dich hier ein
</Anchor>
</Link>
<Button type="submit" radius="xl" loading={loading}>
Expand Down
2 changes: 1 addition & 1 deletion src/components/Channel/NoVideosFound.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ const ChannelNoVideosFound = () => {
return (
<div>
<Center>
No videos found
Keine Videos gefunden!
<Image src="/images/Sadge.webp" ml={5} height={19} width={27} />
</Center>
</div>
Expand Down
6 changes: 3 additions & 3 deletions src/components/Error/Unauthorized.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -19,13 +19,13 @@ export function Unauthorized() {
size="lg"
className={classes.description}
>
Either you are not logged in or you do not have permission to view this
page.
Entweder bist du nicht eingeloggt oder du hast keine Berechtigung diese
Seite aufzurufen.
</Text>
<Group>
<Link href="/">
<Button variant="subtle" size="md">
Take me back to home page
Bring mich zurück auf die Startseite.
</Button>
</Link>
</Group>
Expand Down
2 changes: 1 addition & 1 deletion src/components/Landing/ContinueWatching.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ const LandingContinueWatching = () => {
}),
});

if (error) return <div>failed to load</div>;
if (error) return <div>Fehler beim Laden</div>;
if (isLoading) return <GanymedeLoader />;

return (
Expand Down
6 changes: 3 additions & 3 deletions src/components/Landing/Hero.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,19 +10,19 @@ export function LandingHero() {

<div className={classes.inner}>
<Title className={classes.title}>
Ganymede
VodArchiv
</Title>

<Container size={640}>
<Text size="lg" className={classes.description}>
Effortlessly preserve live streams and VODs. Every archive comes complete with a chat replay and a rendered chat experience.
Deine Plattform, wenn es um Twitch VOD's geht!
</Text>
</Container>

<div className={classes.controls}>
<Link href="/channels">
<Button className={classes.control} variant="white" size="lg">
Channels
Kanäle
</Button>
</Link>
<Link href="/login">
Expand Down
2 changes: 1 addition & 1 deletion src/components/Landing/LoggedInHero.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ export function LandingLoggedInHero() {
return (
<div className={classes.root}>
<Center>
<Title className={classes.title}>Ganymede</Title>
<Title className={classes.title}>VodArchiv</Title>
</Center>
</div>
);
Expand Down
2 changes: 1 addition & 1 deletion src/components/Landing/Recent.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ const LandingRecentlyArchived = () => {
}),
});

if (error) return <div>failed to load</div>;
if (error) return <div>Fehler beim Laden</div>;
if (isLoading) return <GanymedeLoader />;

return (
Expand Down
2 changes: 1 addition & 1 deletion src/components/Vod/Card.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,7 @@ const VideoCard = ({
>

<Text size="sm">
{dayjs(video.streamed_at).format("YYYY/MM/DD")}{" "}
{dayjs(video.streamed_at).format("DD.MM.YYYY")}{" "}
{user.settings.moreUIDetails && (
<span>{dayjs(video.streamed_at).format("LT")}</span>
)}
Expand Down
8 changes: 4 additions & 4 deletions src/components/Vod/ExperimentalChatPlayer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -115,9 +115,9 @@ const ExperimentalChatPlayer = ({ vod }: any) => {
setReady(true);
internalReady = true;

createCustomComment("Chat player ready.");
createCustomComment("VODChat ist bereit!");
createCustomComment(
`Fetched ${generalBadgeMap.size.toLocaleString()} badges, ${subscriptionBadgeMap.size.toLocaleString()} subscription badges, and ${emoteMap.size.toLocaleString()} emotes.`
`Es wurden ${generalBadgeMap.size.toLocaleString()} badges, ${subscriptionBadgeMap.size.toLocaleString()} subscription badges, und ${emoteMap.size.toLocaleString()} emotes abgerufen.`
);
});
});
Expand Down Expand Up @@ -286,7 +286,7 @@ const ExperimentalChatPlayer = ({ vod }: any) => {
const clearChat = () => {
chat.current = [];
recChat = [];
createCustomComment("Time skip detected. Chat cleared.");
createCustomComment("Es wurde ein Zeitsprung erkannt. Der Chat wurde geleert.");
};

const videoPlayerInterval = setInterval(() => {
Expand Down Expand Up @@ -354,7 +354,7 @@ const ExperimentalChatPlayer = ({ vod }: any) => {
_id: randomId(),
content_offset_seconds: 0,
commenter: {
display_name: "Ganymede",
display_name: "VODChat",
},
message: {
body: message,
Expand Down
2 changes: 1 addition & 1 deletion src/components/Vod/LoginRequred.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ const VodLoginRequired = (vod: Video) => {
<IconLock size={64} className={classes.icon} />
</Center>
<div className={classes.text}>
You must be logged in to view this video
Du musst eingeloggt sein, um dieses Video zu sehen!
</div>
</div>
</div>
Expand Down
2 changes: 1 addition & 1 deletion src/components/Vod/MissingThumbnailImage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ export const MissingThumbnailImage = () => {
<>
<Image
src="/images/ganymede-thumbnail.png"
alt="Ganymede Thumbnail"
alt="vodarchiv Thumbnail"
fit="contain"
/>
</>
Expand Down
2 changes: 1 addition & 1 deletion src/components/Vod/TitleBar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ export const VodTitleBar = ({ vod }: any) => {
>
<div className={classes.titleBarBadge}>
<Text mr={5}>
{dayjs(vod.streamed_at).format("YYYY/MM/DD")}
{dayjs(vod.streamed_at).format("DD.MM.YYYY")}
</Text>
<IconCalendarEvent size={20} />
</div>
Expand Down
22 changes: 11 additions & 11 deletions src/components/layouts/Navbar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@ export function HeaderMegaMenu() {
Home
</Link>
<Link href="/channels" className={classes.link}>
Channels
Kanäle
</Link>
<Link href="/playlists" className={classes.link}>
Playlists
Expand All @@ -162,7 +162,7 @@ export function HeaderMegaMenu() {
roles: [ROLES.EDITOR, ROLES.ARCHIVER, ROLES.ADMIN],
}) && (
<Link href="/archive" className={classes.link}>
Archive
Archiv
</Link>
)}
{useJsxAuth({
Expand All @@ -178,12 +178,12 @@ export function HeaderMegaMenu() {
roles: [ROLES.EDITOR, ROLES.ARCHIVER, ROLES.ADMIN],
}) && (
<Link href="/queue" className={classes.link}>
Queue
Warteschlange
</Link>
)}
{useJsxAuth({ loggedIn: true, roles: [] }) && (
<Link href="/profile" className={classes.link}>
Profile
Profil
</Link>
)}

Expand Down Expand Up @@ -240,12 +240,12 @@ export function HeaderMegaMenu() {
</Link>
) : (
<Link href="/login" style={{ marginRight: "0.75rem" }}>
<Button variant="default">Log in</Button>
<Button variant="default">Einloggen</Button>
</Link>
)}

<Link href="/register">
<Button color="violet">Sign up</Button>
<Button color="violet">Registrieren</Button>
</Link>
</div>
)}
Expand All @@ -271,7 +271,7 @@ export function HeaderMegaMenu() {
Home
</Link>
<Link href="/channels" className={classes.link}>
Channels
Kanäle
</Link>
<Link href="/playlists" className={classes.link}>
Playlists
Expand All @@ -297,7 +297,7 @@ export function HeaderMegaMenu() {
roles: [ROLES.EDITOR, ROLES.ARCHIVER, ROLES.ADMIN],
}) && (
<Link href="/queue" className={classes.link}>
Queue
Warteschlange
</Link>
)}
{useJsxAuth({ loggedIn: true, roles: [] }) && (
Expand Down Expand Up @@ -351,16 +351,16 @@ export function HeaderMegaMenu() {
href={`${publicRuntimeConfig.API_URL}/api/v1/auth/oauth/login`}
style={{ marginRight: "0.75rem" }}
>
<Button variant="default">Log in</Button>
<Button variant="default">Einloggen</Button>
</Link>
) : (
<Link href="/login" style={{ marginRight: "0.75rem" }}>
<Button variant="default">Log in</Button>
<Button variant="default">Einloggen</Button>
</Link>
)}

<Link href="/register">
<Button color="violet">Sign up</Button>
<Button color="violet">Registrieren</Button>
</Link>
</div>
)}
Expand Down
2 changes: 1 addition & 1 deletion src/pages/channels/[channelName].tsx
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ const ChannelPage = (props: any) => {
{ value: "clip", label: "Clip" },
];

useDocumentTitle(`${props.channel.display_name} - Ganymede`);
useDocumentTitle(`${props.channel.display_name} - VodArchiv`);

const queryClient = useQueryClient();

Expand Down
2 changes: 1 addition & 1 deletion src/pages/channels/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import { useDocumentTitle } from "@mantine/hooks";
const ChannelsPage = () => {
const queryClient = useQueryClient();

useDocumentTitle("Channels - Ganymede");
useDocumentTitle("Channels - VodArchiv");

// React Query
const { isLoading, error, data } = useQuery({
Expand Down
2 changes: 1 addition & 1 deletion src/pages/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import { LandingLoggedInHero } from "../components/Landing/LoggedInHero";

export default function Home() {

useDocumentTitle("Ganymede");
useDocumentTitle("VodArchiv");

const user = useUserStore((state) => state);

Expand Down
2 changes: 1 addition & 1 deletion src/pages/login.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { Container } from "@mantine/core";
import { useDocumentTitle } from "@mantine/hooks";

const LoginPage = () => {
useDocumentTitle("Ganymede - Login");
useDocumentTitle("VodArchiv - Login");
return (
<div>
<Container mt={50} size="sm">
Expand Down
2 changes: 1 addition & 1 deletion src/pages/playlists/[playlistId].tsx
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ const PlaylistPage = (props: any) => {
const [deletePlaylistModalOpened, setDeletePlaylistModalOpened] =
useState(false);

useDocumentTitle(`Ganymede - Playlist ${props.playlistId}`);
useDocumentTitle(`VodArchiv - Playlist ${props.playlistId}`);

const { isLoading, error, data } = useQuery({
queryKey: ["playlist", props.playlistId],
Expand Down
2 changes: 1 addition & 1 deletion src/pages/playlists/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import classes from "./playlists.module.css"
const PlaylistsPage = () => {
const [opened, setOpened] = useState(false);

useDocumentTitle("Playlists - Ganymede");
useDocumentTitle("Playlists - VodArchiv");

const closeModalCallback = () => {
setOpened(false);
Expand Down
2 changes: 1 addition & 1 deletion src/pages/profile.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ const ProfilePage = () => {
const [showMoreUIDetails, setShowMoreUIDetails] = useState(false);


useDocumentTitle("Profile - Ganymede");
useDocumentTitle("Profile - VodArchiv");

useEffect(() => {
setUseNewChatPlayer(user.settings.useNewChatPlayer);
Expand Down
2 changes: 1 addition & 1 deletion src/pages/queue/[queueId].tsx
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ const QueueItemPage = (props: any) => {

const [intervalMs, setIntervalMs] = useState(1000);

useDocumentTitle(`Queue ${props.queueId} - Ganymede`);
useDocumentTitle(`Warteschlange ${props.queueId} - VodArchiv`);

const { error, isLoading, data } = useQuery({
queryKey: ["queue-item", props.queueId],
Expand Down
2 changes: 1 addition & 1 deletion src/pages/queue/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import { Authorization, ROLES } from "../../components/ProtectedRoute";
import QueueTable from "../../components/Queue/Table";

const QueuePage = () => {
useDocumentTitle("Queue - Ganymede");
useDocumentTitle("Warteschlange - VodArchiv");
return (
<Authorization allowedRoles={[ROLES.ARCHIVER, ROLES.EDITOR, ROLES.ADMIN]}>
<Container mt={10} size="7xl">
Expand Down
2 changes: 1 addition & 1 deletion src/pages/register.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { RegisterForm } from "../components/Authentication/Register";
import { useDocumentTitle } from "@mantine/hooks";

const RegisterPage = () => {
useDocumentTitle("Ganymede - Register");
useDocumentTitle("VodArchiv - Register");
return (
<div>
<Container mt={50} size="sm">
Expand Down
2 changes: 1 addition & 1 deletion src/pages/search/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ const SearchPage = (props: SearchPageProps) => {
const [limit, setLimit] = useState(24);
const handlers = useRef<NumberInputHandlers>();

useDocumentTitle("Ganymede - Search");
useDocumentTitle("VodArchiv - Suche");

useEffect(() => {
if (props.q && props.q.length > 0) {
Expand Down
4 changes: 2 additions & 2 deletions src/pages/vods/[vodId].tsx
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ const VodPage = (props: any) => {
}, [leftColumnRef, rightColumnRef, isMobile])


useDocumentTitle(`Ganymede - VOD ${props.vodId}`);
useDocumentTitle(`VodArchiv - VOD ${props.vodId}`);

const { data } = useQuery({
queryKey: ["vod", props.vodId],
Expand Down Expand Up @@ -149,7 +149,7 @@ const VodPage = (props: any) => {
return (
<div>
<Head>
<title>{data.title} - Ganymede</title>
<title>{data.title} - VodArchiv</title>
</Head>
{checkLoginRequired() && <VodLoginRequired {...data} />}
{!checkLoginRequired() && (
Expand Down

0 comments on commit bc9c9a9

Please sign in to comment.