feat(i18n): translate error messages

This commit is contained in:
Amruth Pillai
2023-11-14 13:02:38 +01:00
parent 888b4db0bb
commit 2db52b7ef2
97 changed files with 10452 additions and 36506 deletions

View File

@ -153,15 +153,18 @@ const Question4 = () => {
>
<div className="relative bg-secondary-accent font-medium">
<span className="px-2 py-1">{language.name}</span>
<span
className={cn(
"inset-0 bg-warning px-1.5 py-1 text-xs text-white",
language.progress < 40 && "bg-error",
language.progress > 80 && "bg-success",
)}
>
{language.progress}%
</span>
{language.progress && (
<span
className={cn(
"inset-0 bg-warning px-1.5 py-1 text-xs text-white",
language.progress < 40 && "bg-error",
language.progress > 80 && "bg-success",
)}
>
{language.progress}%
</span>
)}
</div>
</a>
))}