Update live stream page to display suggested videos in English

Update meta tags and suggested video titles to English for better international user experience on the live stream page.

Replit-Commit-Author: Agent
Replit-Commit-Session-Id: 45a1dcfc-f8a2-475a-a6b9-96fbb841dc27
Replit-Commit-Checkpoint-Type: full_checkpoint
Replit-Commit-Screenshot-Url: https://storage.googleapis.com/screenshot-production-us-central1/60d372ff-2c10-46c7-b01b-10c3435136b0/45a1dcfc-f8a2-475a-a6b9-96fbb841dc27/E8iWmgC
This commit is contained in:
sebastjanartic 2025-09-26 15:52:28 +00:00
parent e7a23f2f41
commit 19dfb0542a
2 changed files with 5 additions and 8 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 237 KiB

View File

@ -30,7 +30,7 @@ export default function LivePage() {
staleTime: 5 * 60 * 1000, // 5 minutes staleTime: 5 * 60 * 1000, // 5 minutes
}); });
const videos = videosData?.videos || []; const videos = (videosData && Array.isArray(videosData.videos)) ? videosData.videos : [];
useEffect(() => { useEffect(() => {
// Set page meta tags // Set page meta tags
@ -38,7 +38,7 @@ export default function LivePage() {
const metaDescription = document.querySelector('meta[name="description"]'); const metaDescription = document.querySelector('meta[name="description"]');
if (metaDescription) { if (metaDescription) {
metaDescription.setAttribute('content', 'Živý prenos na video.folx.tv - sledujte exkluzívny obsah v reálnom čase.'); metaDescription.setAttribute('content', 'Live stream on video.folx.tv - watch exclusive content in real time.');
} }
const updateMetaTag = (property: string, content: string) => { const updateMetaTag = (property: string, content: string) => {
@ -52,7 +52,7 @@ export default function LivePage() {
}; };
updateMetaTag('og:title', 'LIVE Stream - video.folx.tv'); updateMetaTag('og:title', 'LIVE Stream - video.folx.tv');
updateMetaTag('og:description', 'Živý prenos na video.folx.tv - sledujte exkluzívny obsah v reálnom čase.'); updateMetaTag('og:description', 'Live stream on video.folx.tv - watch exclusive content in real time.');
updateMetaTag('og:type', 'video.other'); updateMetaTag('og:type', 'video.other');
}, []); }, []);
@ -408,16 +408,13 @@ export default function LivePage() {
{/* Sidebar - Suggested Videos */} {/* Sidebar - Suggested Videos */}
<div className="lg:col-span-1 space-y-6"> <div className="lg:col-span-1 space-y-6">
<div className="bg-bunny-darker rounded-lg p-4"> <div className="bg-bunny-darker rounded-lg p-4">
<h3 className="text-white font-bold text-lg mb-4">Predlagani videi</h3> <h3 className="text-white font-bold text-lg mb-4">Suggested Videos</h3>
<div className="space-y-4"> <div className="space-y-4">
{videos.slice(0, 8).map((video: any) => ( {videos.slice(0, 8).map((video: any) => (
<div key={video.id} className="group"> <div key={video.id} className="group">
<VideoCard <VideoCard
video={video} video={video}
isCompact={true} onClick={() => window.location.href = `/video/${video.id}`}
showTitle={true}
showViews={true}
showDate={true}
className="hover:bg-bunny-dark/50 transition-colors rounded-lg" className="hover:bg-bunny-dark/50 transition-colors rounded-lg"
/> />
</div> </div>