diff --git a/frontend/src/components/WikiCard.tsx b/frontend/src/components/WikiCard.tsx index 264d0c9..5db033e 100644 --- a/frontend/src/components/WikiCard.tsx +++ b/frontend/src/components/WikiCard.tsx @@ -1,6 +1,7 @@ import { Share2, Heart } from 'lucide-react'; import { useState } from 'react'; import { useLikedArticles } from '../contexts/LikedArticlesContext'; +import { useLocalization } from '../hooks/useLocalization'; export interface WikiArticle { title: string; @@ -22,6 +23,7 @@ interface WikiCardProps { export function WikiCard({ article }: WikiCardProps) { const [imageLoaded, setImageLoaded] = useState(false); const { toggleLike, isLiked } = useLikedArticles(); + const { currentLanguage } = useLocalization(); // Add debugging log console.log('Article data:', { @@ -113,7 +115,7 @@ export function WikiCard({ article }: WikiCardProps) { rel="noopener noreferrer" className="inline-block text-white hover:text-gray-200 drop-shadow-lg" > - Read more → + {currentLanguage.readMore ?? "Read more"} → diff --git a/frontend/src/languages.ts b/frontend/src/languages.ts index 4590205..afd7a7b 100644 --- a/frontend/src/languages.ts +++ b/frontend/src/languages.ts @@ -75,6 +75,7 @@ export const LANGUAGES = [ flag: "https://hatscripts.github.io/circle-flags/flags/fr.svg", api: "https://fr.wikipedia.org/w/api.php?", article: "https://fr.wikipedia.org/wiki/", + readMore: "En savoir plus", }, { id: "el",