diff --git a/client/src/components/bunny-video-modal.tsx b/client/src/components/bunny-video-modal.tsx
index 91cc8cb..6e1f8a3 100644
--- a/client/src/components/bunny-video-modal.tsx
+++ b/client/src/components/bunny-video-modal.tsx
@@ -26,11 +26,11 @@ function formatDuration(seconds: number): string {
function formatViews(views: number): string {
if (views >= 1000000) {
- return `${(views / 1000000).toFixed(1)}M views`;
+ return `${(views / 1000000).toFixed(1)}M Aufrufe`;
} else if (views >= 1000) {
- return `${(views / 1000).toFixed(1)}K views`;
+ return `${(views / 1000).toFixed(1)}K Aufrufe`;
}
- return `${views} views`;
+ return `${views} Aufrufe`;
}
function formatDate(date: Date | string): string {
@@ -44,11 +44,11 @@ function formatDate(date: Date | string): string {
const diffTime = Math.abs(now.getTime() - createdDate.getTime());
const diffDays = Math.floor(diffTime / (1000 * 60 * 60 * 24));
- if (diffDays === 0) return "Today";
- if (diffDays === 1) return "1 day ago";
- if (diffDays < 7) return `${diffDays} days ago`;
- if (diffDays < 30) return `${Math.floor(diffDays / 7)} week${Math.floor(diffDays / 7) > 1 ? 's' : ''} ago`;
- return `${Math.floor(diffDays / 30)} month${Math.floor(diffDays / 30) > 1 ? 's' : ''} ago`;
+ if (diffDays === 0) return "Heute";
+ if (diffDays === 1) return "vor 1 Tag";
+ if (diffDays < 7) return `vor ${diffDays} Tagen`;
+ if (diffDays < 30) return `vor ${Math.floor(diffDays / 7)} Woche${Math.floor(diffDays / 7) > 1 ? 'n' : ''}`;
+ return `vor ${Math.floor(diffDays / 30)} Monat${Math.floor(diffDays / 30) > 1 ? 'en' : ''}`;
}
export default function BunnyVideoModal({ video, isOpen, onClose, onEdit, videos = [], onVideoChange }: BunnyVideoModalProps) {
@@ -118,7 +118,7 @@ export default function BunnyVideoModal({ video, isOpen, onClose, onEdit, videos
try {
await navigator.clipboard.writeText(getShareUrl());
const notification = document.createElement('div');
- notification.textContent = 'Povezava kopirana!';
+ 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(() => {
@@ -189,7 +189,7 @@ export default function BunnyVideoModal({ video, isOpen, onClose, onEdit, videos
data-testid="button-edit-video"
>