Update video platform for improved language and content display
Translate user interface elements and fetch video descriptions from meta tags. Replit-Commit-Author: Agent Replit-Commit-Session-Id: d7424866-83d1-4486-a212-ac12b4c7becf Replit-Commit-Checkpoint-Type: full_checkpoint Replit-Commit-Screenshot-Url: https://storage.googleapis.com/screenshot-production-us-central1/8cc42625-c1f5-4e43-99bd-77f2c4dedee2/d7424866-83d1-4486-a212-ac12b4c7becf/3kCbR9A
This commit is contained in:
@@ -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('sl-SI', {
|
||||
return d.toLocaleDateString('en-US', {
|
||||
year: 'numeric',
|
||||
month: 'long',
|
||||
day: 'numeric'
|
||||
@@ -300,7 +300,7 @@ export default function VideoPage() {
|
||||
onClick={copyToClipboard}
|
||||
className="w-full px-4 py-2 text-left text-white hover:bg-gray-700"
|
||||
>
|
||||
Copy link
|
||||
Copy Link
|
||||
</button>
|
||||
</div>
|
||||
)}
|
||||
@@ -321,7 +321,7 @@ export default function VideoPage() {
|
||||
</div>
|
||||
) : (
|
||||
<div className="text-bunny-muted text-sm">
|
||||
<p>Opis videa ni na voljo.</p>
|
||||
<p>Video description not available.</p>
|
||||
</div>
|
||||
)}
|
||||
</div>
|
||||
@@ -329,7 +329,7 @@ export default function VideoPage() {
|
||||
|
||||
{/* Recommended videos sidebar */}
|
||||
<div className="lg:w-96">
|
||||
<h2 className="text-lg font-semibold text-bunny-light mb-4">Recommended videos</h2>
|
||||
<h2 className="text-lg font-semibold text-bunny-light mb-4">Recommended Videos</h2>
|
||||
|
||||
<div className="space-y-3">
|
||||
{recommendedVideos.slice(0, 10).map((video) => (
|
||||
|
||||
Reference in New Issue
Block a user