Greg
Claude Opus 4.7 (1M context)
Preparar despliegue en fly.io: monolito dockerizado + seeder demo
6aa6081
Raw History Blame Contribute Delete
433 Bytes
const ROLE_LABELS: Record<string, string> = {
admin: 'Administrador',
teacher: 'Docente',
administrativo: 'Administrativo',
obrero: 'Obrero',
representative: 'Representante',
student: 'Estudiante',
};
export const ROLES = Object.entries(ROLE_LABELS).map(([value, label]) => ({ value, label }));
export function translateRole(role?: string | null): string {
if (!role) return '';
return ROLE_LABELS[role] || role;
}