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:
parent
e7a23f2f41
commit
19dfb0542a
BIN
attached_assets/image_1758901895847.png
Normal file
BIN
attached_assets/image_1758901895847.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 237 KiB |
@ -30,7 +30,7 @@ export default function LivePage() {
|
||||
staleTime: 5 * 60 * 1000, // 5 minutes
|
||||
});
|
||||
|
||||
const videos = videosData?.videos || [];
|
||||
const videos = (videosData && Array.isArray(videosData.videos)) ? videosData.videos : [];
|
||||
|
||||
useEffect(() => {
|
||||
// Set page meta tags
|
||||
@ -38,7 +38,7 @@ export default function LivePage() {
|
||||
|
||||
const metaDescription = document.querySelector('meta[name="description"]');
|
||||
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) => {
|
||||
@ -52,7 +52,7 @@ export default function LivePage() {
|
||||
};
|
||||
|
||||
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');
|
||||
}, []);
|
||||
|
||||
@ -408,16 +408,13 @@ export default function LivePage() {
|
||||
{/* Sidebar - Suggested Videos */}
|
||||
<div className="lg:col-span-1 space-y-6">
|
||||
<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">
|
||||
{videos.slice(0, 8).map((video: any) => (
|
||||
<div key={video.id} className="group">
|
||||
<VideoCard
|
||||
video={video}
|
||||
isCompact={true}
|
||||
showTitle={true}
|
||||
showViews={true}
|
||||
showDate={true}
|
||||
onClick={() => window.location.href = `/video/${video.id}`}
|
||||
className="hover:bg-bunny-dark/50 transition-colors rounded-lg"
|
||||
/>
|
||||
</div>
|
||||
|
||||
Loading…
Reference in New Issue
Block a user