fix: add missing readBooks translations
Some checks failed
Dev Deployment (Zero Downtime) / deploy-dev (push) Has been cancelled

This commit is contained in:
2026-02-16 00:37:34 +01:00
parent 0a0895cf89
commit 931843a5c6
21 changed files with 945 additions and 16 deletions

View File

@@ -20,6 +20,8 @@ export type ProjectDetailData = {
date: string;
github?: string | null;
live?: string | null;
button_live_label?: string | null;
button_github_label?: string | null;
imageUrl?: string | null;
};
@@ -205,7 +207,7 @@ export default function ProjectDetailClient({
rel="noopener noreferrer"
className="flex items-center justify-between w-full px-4 py-3 bg-stone-900 text-stone-50 rounded-xl font-medium hover:bg-stone-800 hover:scale-[1.02] transition-all shadow-md group"
>
<span>{tDetail("liveDemo")}</span>
<span>{project.button_live_label || tDetail("liveDemo")}</span>
<ExternalLink size={18} className="group-hover:translate-x-1 transition-transform" />
</a>
) : (
@@ -221,7 +223,7 @@ export default function ProjectDetailClient({
rel="noopener noreferrer"
className="flex items-center justify-between w-full px-4 py-3 bg-white border border-stone-200 text-stone-700 rounded-xl font-medium hover:bg-stone-50 hover:text-stone-900 hover:border-stone-300 transition-all shadow-sm group"
>
<span>{tDetail("viewSource")}</span>
<span>{project.button_github_label || tDetail("viewSource")}</span>
<GithubIcon size={18} className="group-hover:rotate-12 transition-transform" />
</a>
) : null}