📄 Huge intl feature

This commit is contained in:
RJ
2025-12-03 00:17:34 +02:00
parent 6e5d641c06
commit 78cdc7b539
48 changed files with 955 additions and 138 deletions

View File

@@ -1,4 +1,5 @@
import Link from 'next/link'
import { useTranslations } from 'next-intl'
import { Link } from '@/i18n/navigation'
import { TagInfo } from '@/lib/tags'
interface TagCloudProps {
@@ -6,6 +7,7 @@ interface TagCloudProps {
}
export function TagCloud({ tags }: TagCloudProps) {
const t = useTranslations('Tags')
const sizeClasses = {
sm: 'text-xs opacity-70',
md: 'text-sm',
@@ -26,7 +28,7 @@ export function TagCloud({ tags }: TagCloudProps) {
hover:text-cyan-400
transition-colors
`}
title={`${tag.count} ${tag.count === 1 ? 'articol' : 'articole'}`}
title={t('postsWithTag', {count: tag.count, tag: tag.name})}
>
#{tag.name}
</Link>