fix: localize UI text to Macedonian and fix view count display
- Change date format from 'short' to 'long' month names in Macedonian - Translate 'views' to 'прегледи' across all components - Translate 'shares' to 'споделувања' - Translate 'updates' to 'ажурирања' - Translate 'By' to 'Од' for author attribution - Translate 'Back to articles' to 'Назад кон вести' - Translate archive page headers to Macedonian - Translate auto-scroll button text to Macedonian - Translate connection status to Macedonian - Add fallback to 0 for undefined view counts (|| 0)
This commit is contained in:
1 parent
46bbeed525
commit
aa43f50a8c
6 files changed
+29
-29
No files matched your search
@@ -28,8 +28,8 @@ export function ArchiveComponent() {
|
||||
return (
|
||||
<div>
|
||||
<div className="mb-8">
|
||||
<h1 className="text-3xl font-bold">Articles</h1>
|
||||
<p className="text-muted-foreground">Latest news and articles</p>
|
||||
<h1 className="text-3xl font-bold">Архива</h1>
|
||||
<p className="text-muted-foreground">Најнови вести и статии</p>
|
||||
</div>
|
||||
|
||||
<div className="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-6">
|
||||
@@ -53,18 +53,18 @@ export function ArchiveComponent() {
|
||||
)}
|
||||
</Link>
|
||||
|
||||
<div className="flex items-center justify-between text-sm text-muted-foreground">
|
||||
<div className="flex items-center space-x-4">
|
||||
<span>
|
||||
{new Date(article.createdAt).toLocaleDateString('mk-MK', {
|
||||
day: 'numeric',
|
||||
month: 'short',
|
||||
year: 'numeric',
|
||||
})}
|
||||
</span>
|
||||
<span>•</span>
|
||||
<span>{article.views} views</span>
|
||||
</div>
|
||||
<div className="flex items-center justify-between text-sm text-muted-foreground">
|
||||
<div className="flex items-center space-x-4">
|
||||
<span>
|
||||
{new Date(article.createdAt).toLocaleDateString('mk-MK', {
|
||||
day: 'numeric',
|
||||
month: 'long',
|
||||
year: 'numeric',
|
||||
})}
|
||||
</span>
|
||||
<span>•</span>
|
||||
<span>{article.views || 0} прегледи</span>
|
||||
</div>
|
||||
|
||||
<SocialShareButtons
|
||||
articleId={article.id}
|
||||
|
||||
Reference in new issue
Block a user