Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion frontend/src/components/WikiCard.tsx
Original file line number Diff line number Diff line change
@@ -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;
Expand All @@ -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:', {
Expand Down Expand Up @@ -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"}
</a>
</div>
</div>
Expand Down
1 change: 1 addition & 0 deletions frontend/src/languages.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down