📄 Huge intl feature
Some checks failed
Some checks failed
This commit was merged in pull request #10.
This commit is contained in:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user