feat: translate memberships page and components to English

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
Ivan
2026-03-01 21:24:48 +00:00
parent 13bd84a0b5
commit 407744d00f
3 changed files with 72 additions and 72 deletions

View File

@@ -57,7 +57,7 @@ export function PlanCard({ plan, onEdit, onDelete, isAdmin = false }: PlanCardPr
? "bg-accent-100 text-accent-700"
: "bg-primary-100 text-primary-600"
)}>
{plan.subscriberCount} {plan.subscriberCount === 1 ? "suscriptor" : "suscriptores"}
{plan.subscriberCount} {plan.subscriberCount === 1 ? "subscriber" : "subscribers"}
</span>
</div>
{plan.description && (
@@ -72,7 +72,7 @@ export function PlanCard({ plan, onEdit, onDelete, isAdmin = false }: PlanCardPr
{formatCurrency(price)}
</div>
<div className="text-sm text-primary-500">
/{plan.durationMonths} {plan.durationMonths === 1 ? "mes" : "meses"}
/{plan.durationMonths} {plan.durationMonths === 1 ? "month" : "months"}
</div>
</div>
@@ -87,8 +87,8 @@ export function PlanCard({ plan, onEdit, onDelete, isAdmin = false }: PlanCardPr
</svg>
</div>
<div>
<p className="font-medium text-primary-800">{freeHours} horas gratis</p>
<p className="text-xs text-primary-500">de cancha al mes</p>
<p className="font-medium text-primary-800">{freeHours} free hours</p>
<p className="text-xs text-primary-500">of court time per month</p>
</div>
</div>
)}
@@ -102,8 +102,8 @@ export function PlanCard({ plan, onEdit, onDelete, isAdmin = false }: PlanCardPr
</svg>
</div>
<div>
<p className="font-medium text-primary-800">{discountPercent}% descuento</p>
<p className="text-xs text-primary-500">en reservas adicionales</p>
<p className="font-medium text-primary-800">{discountPercent}% discount</p>
<p className="text-xs text-primary-500">on additional bookings</p>
</div>
</div>
)}
@@ -117,8 +117,8 @@ export function PlanCard({ plan, onEdit, onDelete, isAdmin = false }: PlanCardPr
</svg>
</div>
<div>
<p className="font-medium text-primary-800">{storeDiscount}% descuento</p>
<p className="text-xs text-primary-500">en tienda</p>
<p className="font-medium text-primary-800">{storeDiscount}% discount</p>
<p className="text-xs text-primary-500">in store</p>
</div>
</div>
)}
@@ -126,7 +126,7 @@ export function PlanCard({ plan, onEdit, onDelete, isAdmin = false }: PlanCardPr
{/* Other Benefits */}
{otherBenefits.length > 0 && (
<div className="pt-2 border-t border-primary-100">
<p className="text-xs font-medium text-primary-600 mb-2">Beneficios adicionales:</p>
<p className="text-xs font-medium text-primary-600 mb-2">Additional benefits:</p>
<ul className="space-y-1">
{otherBenefits.map((benefit, index) => (
<li key={index} className="flex items-start gap-2 text-sm text-primary-700">
@@ -153,7 +153,7 @@ export function PlanCard({ plan, onEdit, onDelete, isAdmin = false }: PlanCardPr
<svg className="w-4 h-4 mr-1" fill="none" stroke="currentColor" viewBox="0 0 24 24">
<path strokeLinecap="round" strokeLinejoin="round" strokeWidth={2} d="M11 5H6a2 2 0 00-2 2v11a2 2 0 002 2h11a2 2 0 002-2v-5m-1.414-9.414a2 2 0 112.828 2.828L11.828 15H9v-2.828l8.586-8.586z" />
</svg>
Editar
Edit
</Button>
<Button
variant="outline"
@@ -164,7 +164,7 @@ export function PlanCard({ plan, onEdit, onDelete, isAdmin = false }: PlanCardPr
<svg className="w-4 h-4 mr-1" fill="none" stroke="currentColor" viewBox="0 0 24 24">
<path strokeLinecap="round" strokeLinejoin="round" strokeWidth={2} d="M19 7l-.867 12.142A2 2 0 0116.138 21H7.862a2 2 0 01-1.995-1.858L5 7m5 4v6m4-6v6m1-10V4a1 1 0 00-1-1h-4a1 1 0 00-1 1v3M4 7h16" />
</svg>
Eliminar
Delete
</Button>
</CardFooter>
)}