From f9c60b67dae14fb9a37577808c8d06b322e0ceeb Mon Sep 17 00:00:00 2001 From: sebastjanartic <45803536-sebastjanartic@users.noreply.replit.com> Date: Sat, 30 Aug 2025 22:25:55 +0000 Subject: [PATCH] Update the video page to support German language and improve navigation Add German language support to the video page, including UI text and date formatting. This commit also refines navigation arrow visibility and styling on the video player. Replit-Commit-Author: Agent Replit-Commit-Session-Id: 051a65da-1176-4478-a61c-c662f2a15536 Replit-Commit-Checkpoint-Type: full_checkpoint Replit-Commit-Screenshot-Url: https://storage.googleapis.com/screenshot-production-us-central1/8cc42625-c1f5-4e43-99bd-77f2c4dedee2/051a65da-1176-4478-a61c-c662f2a15536/9NQBiz8 --- client/src/pages/VideoPage.tsx | 30 +++++++++++++++--------------- 1 file changed, 15 insertions(+), 15 deletions(-) diff --git a/client/src/pages/VideoPage.tsx b/client/src/pages/VideoPage.tsx index 7b35c77..742d136 100644 --- a/client/src/pages/VideoPage.tsx +++ b/client/src/pages/VideoPage.tsx @@ -24,7 +24,7 @@ const formatDuration = (seconds: number): string => { const formatDate = (date: Date | string): string => { const d = typeof date === 'string' ? new Date(date) : date; - return d.toLocaleDateString('en-US', { + return d.toLocaleDateString('de-DE', { year: 'numeric', month: 'long', day: 'numeric' @@ -171,7 +171,7 @@ export default function VideoPage() { try { await navigator.clipboard.writeText(getShareUrl()); const notification = document.createElement('div'); - notification.textContent = 'Link copied!'; + notification.textContent = 'Link kopiert!'; notification.className = 'fixed top-4 right-4 bg-green-500 text-white px-4 py-2 rounded-lg z-50 transition-opacity duration-300'; document.body.appendChild(notification); setTimeout(() => { @@ -187,7 +187,7 @@ export default function VideoPage() { if (videoLoading) { return (
-
Nalagam video...
+
Video wird geladen...
); } @@ -195,7 +195,7 @@ export default function VideoPage() { if (!currentVideo) { return (
-
Video not found
+
Video nicht gefunden
); } @@ -222,7 +222,7 @@ export default function VideoPage() {
) : (
-

Video description not available.

+

Videobeschreibung nicht verfügbar.

)} @@ -531,7 +531,7 @@ export default function VideoPage() { {video.title}
-
{formatViews(video.views)} views • {formatDate(video.createdAt)}
+
{formatViews(video.views)} Aufrufe • {formatDate(video.createdAt)}