- Creá tu primer grupo y empezá a cobrar las cuotas de tus alumnos.
+ {t('empty.description')}
) : null}
@@ -74,7 +76,7 @@ export function GroupsView() {
id="my-groups-title"
className="text-xs font-semibold tracking-wider text-secondary uppercase"
>
- Mis grupos
+ {t('myGroups')}
{groups.map((group) => (
diff --git a/apps/web/src/features/groups/NewGroupFab.tsx b/apps/web/src/features/groups/NewGroupFab.tsx
index 046c7f7..989a25c 100644
--- a/apps/web/src/features/groups/NewGroupFab.tsx
+++ b/apps/web/src/features/groups/NewGroupFab.tsx
@@ -1,5 +1,6 @@
import { Link } from '@tanstack/react-router'
import { Plus } from 'lucide-react'
+import { useTranslation } from 'react-i18next'
import { useCollapseOnScroll } from '../../hooks/useCollapseOnScroll'
import { cn } from '../../lib/utils'
@@ -9,11 +10,12 @@ import { cn } from '../../lib/utils'
accessible name never changes. `motion-reduce` swaps without animating. */
export function NewGroupFab() {
const collapsed = useCollapseOnScroll()
+ const { t } = useTranslation('groups')
return (
@@ -24,7 +26,7 @@ export function NewGroupFab() {
collapsed ? 'ml-0 max-w-0 opacity-0' : 'ml-2 max-w-40 opacity-100',
)}
>
- Nuevo grupo
+ {t('newGroup')}
)
diff --git a/apps/web/src/features/groups/add/AddAttendeePage.tsx b/apps/web/src/features/groups/add/AddAttendeePage.tsx
index 35a852c..b5973be 100644
--- a/apps/web/src/features/groups/add/AddAttendeePage.tsx
+++ b/apps/web/src/features/groups/add/AddAttendeePage.tsx
@@ -1,5 +1,6 @@
import { Link } from '@tanstack/react-router'
import { ArrowLeft, Loader2 } from 'lucide-react'
+import { Trans, useTranslation } from 'react-i18next'
import { cn } from '../../../lib/utils'
import { useAddAttendee } from './AddAttendeeProvider'
import { BulkCapacityModal } from './BulkCapacityModal'
@@ -8,13 +9,14 @@ import { CapacityModal } from './CapacityModal'
import { QuickAddForm } from './QuickAddForm'
const TABS = [
- { value: 'quick' as const, label: 'Carga Rápida (Individual)' },
- { value: 'bulk' as const, label: 'Carga Masiva (CSV / Excel)' },
+ { value: 'quick' as const, label: 'tabs.quick' as const },
+ { value: 'bulk' as const, label: 'tabs.bulk' as const },
]
export function AddAttendeePage() {
const { groupId, groupName, attendeesTotal, capacity, groupPending, activeTab, setActiveTab } =
useAddAttendee()
+ const { t } = useTranslation('groupAdd')
if (groupPending) {
return (
@@ -32,24 +34,26 @@ export function AddAttendeePage() {
className="hidden items-center gap-1 text-sm text-foreground/60 transition-colors hover:text-primary lg:inline-flex"
>
- Volver al grupo
+ {t('back')}
-
Agregar miembros
+
{t('title')}
{groupName ? (
- <>
- Sumá miembros a {groupName} de forma
- individual o masiva desde una lista.
- >
+ }}
+ />
) : (
- 'Sumá miembros de forma individual o masiva desde una lista.'
+ t('subtitle')
)}
diff --git a/apps/web/src/features/groups/add/AddAttendeeProvider.tsx b/apps/web/src/features/groups/add/AddAttendeeProvider.tsx
index eb1e2ec..22a5116 100644
--- a/apps/web/src/features/groups/add/AddAttendeeProvider.tsx
+++ b/apps/web/src/features/groups/add/AddAttendeeProvider.tsx
@@ -3,13 +3,17 @@ import type { ReactNode } from 'react'
import { useNavigate } from '@tanstack/react-router'
import { useMutation, useQuery, useQueryClient } from '@tanstack/react-query'
import type {
+ BulkCreateAttendeesResult,
CreateAttendee,
CreateAttendeeResult,
CreateGroupWaitlistEntry,
GroupWaitlistEntryDto,
GroupWaitlistList,
} from '@gruperly/shared'
+import { useTranslation } from 'react-i18next'
import { useToast } from '../../../components/ui'
+import { errorMessage } from '../../../i18n'
+import { i18n } from '../../../i18n/instance'
import {
addToGroupWaitlist,
ApiError,
@@ -72,6 +76,7 @@ const AddAttendeeContext = createContext(null)
export function AddAttendeeProvider({ groupId, children }: { groupId: string; children: ReactNode }) {
const queryClient = useQueryClient()
const toast = useToast()
+ useTranslation()
const navigate = useNavigate()
const [activeTab, setActiveTab] = useState('quick')
@@ -116,11 +121,12 @@ export function AddAttendeeProvider({ groupId, children }: { groupId: string; ch
void queryClient.invalidateQueries({ queryKey: ['group', groupId] })
}
- const handleCreateSuccess = (result: CreateAttendeeResult) => {
+ const handleCreateSuccess = (result: CreateAttendeeResult, payload: CreateAttendee) => {
if (result.outcome === 'created') {
- toast.success(`Miembro ${result.attendee.fullName} agregado con éxito.`)
+ toast.success(i18n.t('groupAdd:toast.created', { name: result.attendee.fullName }))
} else {
- toast.info(result.message)
+ const name = `${payload.firstName} ${payload.lastName ?? ''}`.trim()
+ toast.info(i18n.t('groupAdd:toast.waitlisted', { name }))
}
void queryClient.invalidateQueries({ queryKey: ['group-attendees', groupId] })
// Si era alguien de otro grupo, su ficha allá ahora lo muestra también acá.
@@ -142,10 +148,10 @@ export function AddAttendeeProvider({ groupId, children }: { groupId: string; ch
// refresca la búsqueda para que aparezca la opción de agregar a esa persona.
if (err instanceof ApiError && err.problem?.code === 'person_exists') {
void queryClient.invalidateQueries({ queryKey: ['person-lookup', groupId] })
- toast.info('Ya tenés registrada a una persona con este teléfono. Podés agregarla a este grupo.')
+ toast.info(i18n.t('groupAdd:toast.personExists'))
return
}
- toast.error(err.message || 'Error al agregar miembro.')
+ toast.error(errorMessage(err, i18n.t('groupAdd:toast.addError')))
},
})
@@ -153,7 +159,7 @@ export function AddAttendeeProvider({ groupId, children }: { groupId: string; ch
mutationFn: (payload: CreateAttendee) => createAttendee(groupId, payload, { allowOverflow: true }),
onSuccess: handleCreateSuccess,
onError: (err: Error) => {
- toast.error(err.message || 'Error al agregar miembro.')
+ toast.error(errorMessage(err, i18n.t('groupAdd:toast.addError')))
},
})
@@ -187,7 +193,7 @@ export function AddAttendeeProvider({ groupId, children }: { groupId: string; ch
return { previousWaitlist }
},
onSuccess: (entry) => {
- toast.info(`${entry.fullName} fue agregado a la lista de espera del grupo.`)
+ toast.info(i18n.t('groupAdd:toast.waitlisted', { name: entry.fullName }))
invalidateGroupQueries()
goBackToGroup()
},
@@ -196,9 +202,9 @@ export function AddAttendeeProvider({ groupId, children }: { groupId: string; ch
queryClient.setQueryData(['group-waitlist', groupId], context.previousWaitlist)
}
if (err instanceof ApiError && err.problem?.code === 'already_waitlisted') {
- toast.info('Este número ya está en la lista de espera del grupo.')
+ toast.info(i18n.t('groupAdd:toast.alreadyWaitlisted'))
} else {
- toast.error(err.message || 'Error al agregar a la lista de espera.')
+ toast.error(errorMessage(err, i18n.t('groupAdd:toast.waitlistError')))
}
closeCapacityFlow()
},
@@ -207,14 +213,14 @@ export function AddAttendeeProvider({ groupId, children }: { groupId: string; ch
const bulkImportMutation = useMutation({
mutationFn: (rows: BulkAttendeeRow[]) => bulkCreateAttendees(groupId, { attendees: rows }),
onSuccess: (res) => {
- toast.success(res.message)
+ toast.success(importSummary(res))
setParsedContacts([])
setFileName(null)
void queryClient.invalidateQueries({ queryKey: ['group-attendees', groupId] })
goBackToGroup()
},
onError: (err: Error) => {
- toast.error(err.message || 'Error al importar miembros.')
+ toast.error(errorMessage(err, i18n.t('groupAdd:toast.importError')))
},
})
@@ -235,7 +241,7 @@ export function AddAttendeeProvider({ groupId, children }: { groupId: string; ch
const runBulkImport = () => {
if (validRows.length === 0) {
- toast.error('No hay miembros válidos para importar.')
+ toast.error(i18n.t('groupAdd:bulk.noValidRows'))
return
}
bulkImportMutation.mutate(validRows)
@@ -243,7 +249,7 @@ export function AddAttendeeProvider({ groupId, children }: { groupId: string; ch
const requestBulkImport = () => {
if (validRows.length === 0) {
- toast.error('No hay miembros válidos para importar.')
+ toast.error(i18n.t('groupAdd:bulk.noValidRows'))
return
}
if (capacity != null && attendeesTotal + validRows.length > capacity) {
@@ -310,3 +316,16 @@ export function useAddAttendee() {
}
return context
}
+
+/** The bulk import summary, built from the counts (the API's `message` is Spanish only). */
+function importSummary(result: BulkCreateAttendeesResult): string {
+ return [
+ i18n.t('groupAdd:toast.imported', { count: result.createdCount }),
+ result.linkedCount > 0 ? i18n.t('groupAdd:toast.importedLinked', { count: result.linkedCount }) : null,
+ result.duplicatesCount > 0
+ ? i18n.t('groupAdd:toast.importedDuplicates', { count: result.duplicatesCount })
+ : null,
+ ]
+ .filter(Boolean)
+ .join(' ')
+}
diff --git a/apps/web/src/features/groups/add/BulkCapacityModal.tsx b/apps/web/src/features/groups/add/BulkCapacityModal.tsx
index 2696451..0ca8b6f 100644
--- a/apps/web/src/features/groups/add/BulkCapacityModal.tsx
+++ b/apps/web/src/features/groups/add/BulkCapacityModal.tsx
@@ -1,4 +1,5 @@
import { Check } from 'lucide-react'
+import { Trans, useTranslation } from 'react-i18next'
import { Button, Modal } from '../../../components/ui'
import { useAddAttendee } from './AddAttendeeProvider'
@@ -12,24 +13,28 @@ export function BulkCapacityModal() {
groupName,
capacity,
} = useAddAttendee()
+ const { t } = useTranslation(['groupAdd', 'common'])
return (
- Estás por importar {validRowsCount} miembro(s), pero el
- grupo ya tiene {attendeesTotal} inscrito(s) y su cupo es
- de {capacity}. ¿Deseas importarlos de todos modos?
+ }}
+ />
- El grupo {groupName} ya alcanzó su cupo de{' '}
- {capacity} miembros. ¿Qué deseas hacer con{' '}
-
- {`${capacityPayload.firstName.trim()} ${(capacityPayload.lastName ?? '').trim()}`.trim()}
-
- ?
+ }}
+ />
)}
- Agregar de todos modos
+ {t('capacity.force')}
)}
- Sumar a la lista de espera
+ {t('capacity.waitlist')}
- Si eliges agregarlo de todos modos, el grupo quedará por encima de su cupo.
+ {t('capacity.forceHint')}
) : null}
diff --git a/apps/web/src/features/groups/add/ExistingPersonNotice.tsx b/apps/web/src/features/groups/add/ExistingPersonNotice.tsx
index 96d0945..1d77987 100644
--- a/apps/web/src/features/groups/add/ExistingPersonNotice.tsx
+++ b/apps/web/src/features/groups/add/ExistingPersonNotice.tsx
@@ -1,4 +1,5 @@
import { UserCheck } from 'lucide-react'
+import { Trans, useTranslation } from 'react-i18next'
import type { PersonSummary } from '@gruperly/shared'
import { Button } from '../../../components/ui'
@@ -22,12 +23,13 @@ export function ExistingPersonNotice({
onUnlink,
onChangePhone,
}: ExistingPersonNoticeProps) {
+ const { t } = useTranslation('groupAdd')
const groupNames = person.groups.map((group) => group.groupName).join(', ')
if (alreadyInGroup) {
return (
- {person.fullName} ya es miembro de este grupo.
+ {t('existing.alreadyInGroup', { name: person.fullName })}
)
}
@@ -38,30 +40,29 @@ export function ExistingPersonNotice({
{isLinked ? (
- <>
- Vas a agregar a {person.fullName} a este grupo. Sus datos de contacto
- y notas son los mismos que en sus otros grupos.
- >
+ }} />
) : (
- <>
- Ya tenés a {person.fullName} con este teléfono
- {groupNames ? ` (en ${groupNames})` : ''}. ¿Es la misma persona?
- >
+ }}
+ />
)}
{isLinked ? (
) : (
<>
>
)}
diff --git a/apps/web/src/features/groups/add/QuickAddForm.tsx b/apps/web/src/features/groups/add/QuickAddForm.tsx
index ae6d6e2..e999a87 100644
--- a/apps/web/src/features/groups/add/QuickAddForm.tsx
+++ b/apps/web/src/features/groups/add/QuickAddForm.tsx
@@ -1,5 +1,6 @@
import { useRef, useState } from 'react'
import { Check, Loader2 } from 'lucide-react'
+import { useTranslation } from 'react-i18next'
import { Button, Input, Label, useToast } from '../../../components/ui'
import { useAddAttendee } from './AddAttendeeProvider'
import { ExistingPersonNotice } from './ExistingPersonNotice'
@@ -8,6 +9,7 @@ import { usePersonLookup } from './usePersonLookup'
export function QuickAddForm() {
const { groupId, submitQuickAttendee, isSubmittingAttendee, cancelAddAttendee } = useAddAttendee()
const toast = useToast()
+ const { t } = useTranslation(['groupAdd', 'common'])
const [firstName, setFirstName] = useState('')
const [lastName, setLastName] = useState('')
const [phone, setPhone] = useState('')
@@ -39,11 +41,11 @@ export function QuickAddForm() {
return
}
if (mustLink) {
- toast.info('Ese teléfono ya es de una persona registrada: agregala o usá otro teléfono.')
+ toast.info(t('quick.mustLink'))
return
}
if (!firstName.trim() || !phone.trim()) {
- toast.error('Nombre y teléfono son obligatorios.')
+ toast.error(t('quick.required'))
return
}
submitQuickAttendee({
@@ -69,11 +71,11 @@ export function QuickAddForm() {
setFirstName(e.target.value)}
disabled={isLinked}
@@ -82,11 +84,11 @@ export function QuickAddForm() {
setLastName(e.target.value)}
disabled={isLinked}
@@ -96,11 +98,11 @@ export function QuickAddForm() {
- {`¡Hola! 👋 Te invito a unirte al grupo `}
- {group?.name}.
- {'\n\n'}
- Completa tu pre-inscripción en el siguiente enlace. El profesor revisará tu solicitud:
- {'\n'}
+ }}
+ />
{inviteUrl}
- Al hacer clic en Abrir en WhatsApp, el mensaje completo se copia
- automáticamente al portapapeles. Si WhatsApp Web solo carga el enlace, podés pegarlo
- directamente con Ctrl+V{' '}
- o Cmd+V.
+ ,
+ kbd: ,
+ }}
+ />
>
)}
diff --git a/apps/web/src/features/groups/detail/MembersList.tsx b/apps/web/src/features/groups/detail/MembersList.tsx
index f665a0f..4635008 100644
--- a/apps/web/src/features/groups/detail/MembersList.tsx
+++ b/apps/web/src/features/groups/detail/MembersList.tsx
@@ -1,6 +1,7 @@
import type { AttendeeListItem, AttendanceStatus } from '@gruperly/shared'
import { Link } from '@tanstack/react-router'
import { Check } from 'lucide-react'
+import { useTranslation } from 'react-i18next'
import { cn } from '../../../lib/utils'
import { dotClass, statusLabel } from '../analytics/format'
import { useGroupDetail } from './GroupDetailProvider'
@@ -32,6 +33,7 @@ function PaymentLabel({ state }: { state: PaymentState }) {
}
function AttendanceStrip({ recent }: { recent: AttendanceStatus[] }) {
+ const { t } = useTranslation('groupDetail')
const summary = summarizeAttendance(recent)
if (summary.recorded === 0) {
@@ -47,7 +49,7 @@ function AttendanceStrip({ recent }: { recent: AttendanceStatus[] }) {
))}
diff --git a/apps/web/src/features/groups/detail/MembersView.tsx b/apps/web/src/features/groups/detail/MembersView.tsx
index c08ee75..a5150ff 100644
--- a/apps/web/src/features/groups/detail/MembersView.tsx
+++ b/apps/web/src/features/groups/detail/MembersView.tsx
@@ -1,5 +1,6 @@
import { useNavigate } from '@tanstack/react-router'
import { Loader2, Plus, Share2, Users, X } from 'lucide-react'
+import { useTranslation } from 'react-i18next'
import { Button } from '../../../components/ui'
import { cn } from '../../../lib/utils'
import { useGroupDetail } from './GroupDetailProvider'
@@ -8,6 +9,7 @@ import { byFullName, isOverdue, resolvePaymentState } from './member-row'
function OverdueFilter({ count }: { count: number }) {
const { overdueOnly, setOverdueOnly } = useGroupDetail()
+ const { t } = useTranslation('groupDetail')
return (
@@ -28,7 +30,7 @@ function OverdueFilter({ count }: { count: number }) {
{/* The ✕ only shows with the filter on: it is the signal that tapping it
takes the filter off, without having to say so. */}
{overdueOnly ? : null}
- {count} con pago vencido
+ {t('members.overdueFilter', { count })}
)
@@ -44,6 +46,7 @@ export function MembersView() {
openInviteModal,
} = useGroupDetail()
const navigate = useNavigate()
+ const { t } = useTranslation('groupDetail')
const query = searchFilter.trim().toLowerCase()
// The phone is not shown on the row but is still a search path: it is how most
@@ -79,16 +82,15 @@ export function MembersView() {
- Todavía no hay miembros en este grupo
+ {t('members.emptyTitle')}
- Puedes compartir el enlace de invitación único o agregar miembros de forma manual o
- masiva.
+ {t('members.emptyDescription')}
@@ -115,8 +117,8 @@ export function MembersView() {
{filterBar}
{overdueOnly
- ? 'Ningún miembro con pago vencido coincide con la búsqueda.'
- : 'No se encontraron miembros que coincidan con la búsqueda.'}
+ ? t('members.noOverdueMatch')
+ : t('members.noMatch')}
>
)
diff --git a/apps/web/src/features/groups/detail/MembersWaitlistSection.tsx b/apps/web/src/features/groups/detail/MembersWaitlistSection.tsx
index e0f06ba..fbeea1b 100644
--- a/apps/web/src/features/groups/detail/MembersWaitlistSection.tsx
+++ b/apps/web/src/features/groups/detail/MembersWaitlistSection.tsx
@@ -1,4 +1,5 @@
import { Search } from 'lucide-react'
+import { useTranslation } from 'react-i18next'
import { Input } from '../../../components/ui'
import { MEMBER_SEARCH_MIN } from './constants'
import { useGroupDetail } from './GroupDetailProvider'
@@ -8,6 +9,7 @@ import { SectionChips } from './SectionChips'
export function MembersWaitlistSection() {
const { listSection, searchFilter, setSearchFilter, attendeesTotal } = useGroupDetail()
+ const { t } = useTranslation('groupDetail')
// With few attendees the search is noise: scrolling the list is enough. It is
// removed from the tree instead of hidden, so as not to leave a gap in the
@@ -39,10 +41,10 @@ export function MembersWaitlistSection() {
setSearchFilter(e.target.value)}
- aria-label="Buscar en el listado"
+ aria-label={t('sections.searchLabel')}
className="h-11 rounded-lg border-transparent pl-9 shadow-xs"
/>
@@ -57,8 +59,7 @@ export function MembersWaitlistSection() {
there; `pt-2` is the gap the row's `p-3` used to leave. */}
{listSection === 'pending' ? (
- Pre-inscripciones que esperan tu aprobación y personas en lista de espera por un cupo
- libre.
+ {t('sections.pendingHint')}
) : null}
diff --git a/apps/web/src/features/groups/detail/PendingView.tsx b/apps/web/src/features/groups/detail/PendingView.tsx
index bc673c2..4039f25 100644
--- a/apps/web/src/features/groups/detail/PendingView.tsx
+++ b/apps/web/src/features/groups/detail/PendingView.tsx
@@ -1,4 +1,5 @@
import { Clock, Inbox, Loader2, Share2, UserCheck } from 'lucide-react'
+import { useTranslation } from 'react-i18next'
import { Button } from '../../../components/ui'
import { cn } from '../../../lib/utils'
import { useGroupDetail } from './GroupDetailProvider'
@@ -14,6 +15,7 @@ export function PendingView() {
searchFilter,
openInviteModal,
} = useGroupDetail()
+ const { t } = useTranslation('groupDetail')
const query = searchFilter.trim().toLowerCase()
const matches = (fullName: string, phone: string | null | undefined, email?: string | null) =>
@@ -42,15 +44,14 @@ export function PendingView() {
// `primary-soft` sinks the block; with the previous wash it camouflaged.
-
No hay pendientes
+
{t('pending.emptyTitle')}
- Las pre-inscripciones que lleguen por el enlace compartido y las personas en lista de
- espera aparecerán aquí para que las revises.
+ {t('pending.emptyDescription')}
@@ -60,7 +61,7 @@ export function PendingView() {
if (filteredPrereg.length === 0 && filteredWaitlist.length === 0) {
return (
- No se encontraron pendientes que coincidan con la búsqueda.
+ {t('pending.noMatch')}
)
}
@@ -68,20 +69,20 @@ export function PendingView() {
const sections = [
{
key: 'preregistrations',
- title: 'Pre-inscripciones',
+ title: t('pending.preRegistrations'),
icon: UserCheck,
attention: true,
count: filteredPrereg.length,
- emptyNote: 'Sin pre-inscripciones pendientes.',
+ emptyNote: t('pending.preRegistrationsEmpty'),
table: ,
},
{
key: 'waitlist',
- title: 'Lista de espera',
+ title: t('pending.waitlist'),
icon: Clock,
attention: false,
count: filteredWaitlist.length,
- emptyNote: 'Sin nadie en la lista de espera.',
+ emptyNote: t('pending.waitlistEmpty'),
table: ,
},
]
@@ -91,7 +92,7 @@ export function PendingView() {
{sections.map((section) => {
const Icon = section.icon
const hasRows = section.count > 0
- const titleId = `pending-${section.title.replace(/\s+/g, '-').toLowerCase()}`
+ const titleId = `pending-${section.key}`
// With the search on, sections with no matches are hidden.
if (!hasRows && query) return null
diff --git a/apps/web/src/features/groups/detail/PreRegistrationDetailModal.tsx b/apps/web/src/features/groups/detail/PreRegistrationDetailModal.tsx
index b6b44be..1078693 100644
--- a/apps/web/src/features/groups/detail/PreRegistrationDetailModal.tsx
+++ b/apps/web/src/features/groups/detail/PreRegistrationDetailModal.tsx
@@ -1,5 +1,7 @@
import { Ban, Loader2, Mail, MessageCircle, Phone, UserCheck } from 'lucide-react'
+import { useTranslation } from 'react-i18next'
import { Button, Modal } from '../../../components/ui'
+import { useIntlLocale } from '../../../i18n'
import { formatPhoneDisplay } from '../../../lib/format'
import { DetailRow } from './DetailRow'
import { useGroupDetail } from './GroupDetailProvider'
@@ -14,12 +16,14 @@ export function PreRegistrationDetailModal() {
isSubmittingApproval,
isSubmittingRejection,
} = useGroupDetail()
+ const { t } = useTranslation('groupDetail')
+ const locale = useIntlLocale()
return (
setSelectedPreRegistration(null)}
- title="Detalle de la pre-inscripción"
+ title={t('preRegistration.title')}
maxWidth="sm"
>
{selectedPreRegistration ? (
@@ -33,18 +37,19 @@ export function PreRegistrationDetailModal() {
{selectedPreRegistration.fullName}
diff --git a/apps/web/src/features/groups/detail/PreRegistrationsTable.tsx b/apps/web/src/features/groups/detail/PreRegistrationsTable.tsx
index cc3cc5d..677be71 100644
--- a/apps/web/src/features/groups/detail/PreRegistrationsTable.tsx
+++ b/apps/web/src/features/groups/detail/PreRegistrationsTable.tsx
@@ -1,10 +1,14 @@
import type { GroupPreRegistrationDto } from '@gruperly/shared'
import { ChevronRight } from 'lucide-react'
+import { useTranslation } from 'react-i18next'
+import { useIntlLocale } from '../../../i18n'
import { formatPhoneDisplay } from '../../../lib/format'
import { useGroupDetail } from './GroupDetailProvider'
export function PreRegistrationsTable({ entries }: { entries: GroupPreRegistrationDto[] }) {
const { setSelectedPreRegistration } = useGroupDetail()
+ const { t } = useTranslation('groupDetail')
+ const locale = useIntlLocale()
return (
@@ -13,12 +17,12 @@ export function PreRegistrationsTable({ entries }: { entries: GroupPreRegistrati
as `primary-soft`, the row's background, and the separator would
disappear. */}
-
Nombre
-
Teléfono
+
{t('table.name')}
+
{t('table.phone')}
{/* On mobile the phone leads: the date lives in the detail. */}
-
- ¿Quieres pasar a {firstWaitlistEntry.fullName}, el
- primero de la lista de espera, al grupo?
+ }}
+ />
)}
- Quitar y pasar a {firstWaitlistEntry.fullName} al grupo
+ {t('remove.removeAndPromote', { name: firstWaitlistEntry.fullName })}
)}
- Solo quitar del grupo
+ {t('remove.removeOnly')}
diff --git a/apps/web/src/features/groups/detail/WaitlistTable.tsx b/apps/web/src/features/groups/detail/WaitlistTable.tsx
index 4053170..2cff14e 100644
--- a/apps/web/src/features/groups/detail/WaitlistTable.tsx
+++ b/apps/web/src/features/groups/detail/WaitlistTable.tsx
@@ -1,10 +1,12 @@
import type { GroupWaitlistEntryDto } from '@gruperly/shared'
import { ChevronRight } from 'lucide-react'
+import { useTranslation } from 'react-i18next'
import { formatPhoneDisplay } from '../../../lib/format'
import { useGroupDetail } from './GroupDetailProvider'
export function WaitlistTable({ entries }: { entries: GroupWaitlistEntryDto[] }) {
const { setSelectedWaitlistEntry } = useGroupDetail()
+ const { t } = useTranslation('groupDetail')
return (
@@ -13,10 +15,10 @@ export function WaitlistTable({ entries }: { entries: GroupWaitlistEntryDto[] })
as `primary-soft`, the row's background, and the separator would
disappear. */}
-
Nombre
-
Teléfono
+
{t('table.name')}
+
{t('table.phone')}
- Detalle
+ {t('table.detail')}
diff --git a/apps/web/src/features/groups/detail/member-row.ts b/apps/web/src/features/groups/detail/member-row.ts
index f70e833..2b8e0c3 100644
--- a/apps/web/src/features/groups/detail/member-row.ts
+++ b/apps/web/src/features/groups/detail/member-row.ts
@@ -1,5 +1,6 @@
import type { AttendeeListItem, AttendanceStatus } from '@gruperly/shared'
import { RECENT_ATTENDANCE_LIMIT } from '@gruperly/shared'
+import { i18n } from '../../../i18n/instance'
import { PAYMENT_DUE_SOON_DAYS } from './constants'
/* The listing's row does not ask the backend for presentation verdicts: it asks
@@ -56,14 +57,14 @@ export function isOverdue(state: PaymentState | null): boolean {
export function paymentStateLabel(state: PaymentState): string {
switch (state.kind) {
case 'settled':
- return 'Al día'
+ return i18n.t('groupDetail:row.settled')
case 'dueSoon':
- // "Vence en 0 d" is not natural Spanish: today and tomorrow have words.
- if (state.days === 0) return 'Vence hoy'
- if (state.days === 1) return 'Vence mañana'
- return `Vence en ${state.days} d`
+ // "Vence en 0 d" is not natural: today and tomorrow have words.
+ if (state.days === 0) return i18n.t('groupDetail:row.dueToday')
+ if (state.days === 1) return i18n.t('groupDetail:row.dueTomorrow')
+ return i18n.t('groupDetail:row.dueIn', { days: state.days })
case 'overdue':
- return `Vencido · ${state.days} d`
+ return i18n.t('groupDetail:row.overdue', { days: state.days })
}
}
@@ -86,7 +87,7 @@ export function summarizeAttendance(
const recorded = dots.length
if (recorded === 0) {
- return { dots, attended: 0, recorded: 0, label: 'Sin clases aún' }
+ return { dots, attended: 0, recorded: 0, label: i18n.t('groupDetail:row.noClasses') }
}
const attended = dots.filter((status) => status === 'PRESENT').length
@@ -94,7 +95,7 @@ export function summarizeAttendance(
dots,
attended,
recorded,
- label: `${attended} de ${recorded} ${recorded === 1 ? 'clase' : 'clases'}`,
+ label: i18n.t('groupDetail:row.attended', { attended, count: recorded }),
}
}
diff --git a/apps/web/src/features/groups/detail/useRemoveAttendee.ts b/apps/web/src/features/groups/detail/useRemoveAttendee.ts
index 1a8f213..61df9db 100644
--- a/apps/web/src/features/groups/detail/useRemoveAttendee.ts
+++ b/apps/web/src/features/groups/detail/useRemoveAttendee.ts
@@ -1,7 +1,9 @@
import { useMutation, useQueryClient } from '@tanstack/react-query'
import type { AttendeeDto, RemoveAttendeeResult } from '@gruperly/shared'
import { useToast } from '../../../components/ui'
-import { ApiError, removeGroupAttendee } from '../../../lib/api'
+import { errorMessage } from '../../../i18n'
+import { i18n } from '../../../i18n/instance'
+import { removeGroupAttendee } from '../../../lib/api'
type RemoveAttendeePayload = {
attendee: AttendeeDto
@@ -23,10 +25,13 @@ export function useRemoveAttendee({ groupId, onRemoved }: UseRemoveAttendeeOptio
onSuccess: (result, { attendee }) => {
if (result.promoted) {
toast.success(
- `${attendee.fullName} fue quitado del grupo y ${result.promoted.fullName} pasó de la lista de espera al grupo.`,
+ i18n.t('groupDetail:remove.removedPromoted', {
+ name: attendee.fullName,
+ promoted: result.promoted.fullName,
+ }),
)
} else {
- toast.success(`${attendee.fullName} fue quitado del grupo.`)
+ toast.success(i18n.t('groupDetail:remove.removed', { name: attendee.fullName }))
}
void queryClient.invalidateQueries({ queryKey: ['group-attendees', groupId] })
void queryClient.invalidateQueries({ queryKey: ['group-waitlist', groupId] })
@@ -34,11 +39,8 @@ export function useRemoveAttendee({ groupId, onRemoved }: UseRemoveAttendeeOptio
onRemoved?.(result)
},
onError: (err: Error) => {
- if (err instanceof ApiError && err.problem?.code === 'attendee_has_payments') {
- toast.error(err.problem.detail ?? 'Este miembro tiene cobros asociados.')
- } else {
- toast.error(err.message || 'Error al quitar al miembro del grupo.')
- }
+ // `attendee_has_payments` comes translated by its code.
+ toast.error(errorMessage(err, i18n.t('groupDetail:remove.error')))
},
})
diff --git a/apps/web/src/features/onboarding/constants.ts b/apps/web/src/features/onboarding/constants.ts
index 2903d60..635a429 100644
--- a/apps/web/src/features/onboarding/constants.ts
+++ b/apps/web/src/features/onboarding/constants.ts
@@ -12,17 +12,5 @@ export const WEEK_DAYS: readonly WeekDay[] = [
'SUNDAY',
]
-export const WEEK_DAY_CHIPS: readonly { value: WeekDay; label: string }[] = [
- { value: 'MONDAY', label: 'Lun' },
- { value: 'TUESDAY', label: 'Mar' },
- { value: 'WEDNESDAY', label: 'Mié' },
- { value: 'THURSDAY', label: 'Jue' },
- { value: 'FRIDAY', label: 'Vie' },
- { value: 'SATURDAY', label: 'Sáb' },
- { value: 'SUNDAY', label: 'Dom' },
-]
-
-export const BILLING_TYPES: readonly { value: BillingType; label: string; hint: string }[] = [
- { value: 'MONTHLY', label: 'Mensual', hint: 'Un cobro por mes' },
- { value: 'PER_CLASS', label: 'Por clase', hint: 'Cada clase que asista' },
-]
\ No newline at end of file
+// Labels: `common:weekDayShort.*`, `common:billingType.*` and `common:billingTypeHint.*`.
+export const BILLING_TYPES: readonly BillingType[] = ['MONTHLY', 'PER_CLASS']
\ No newline at end of file
diff --git a/apps/web/src/i18n/i18next.d.ts b/apps/web/src/i18n/i18next.d.ts
index 109f7c0..8ae1a65 100644
--- a/apps/web/src/i18n/i18next.d.ts
+++ b/apps/web/src/i18n/i18next.d.ts
@@ -6,6 +6,10 @@ import type layout from './locales/es-AR/layout.json'
import type pwa from './locales/es-AR/pwa.json'
import type settings from './locales/es-AR/settings.json'
import type home from './locales/es-AR/home.json'
+import type groups from './locales/es-AR/groups.json'
+import type groupDetail from './locales/es-AR/groupDetail.json'
+import type groupAdd from './locales/es-AR/groupAdd.json'
+import type analytics from './locales/es-AR/analytics.json'
import type validation from './locales/es-AR/validation.json'
// es-AR es la fuente: una clave que no exista ahí rompe el typecheck.
@@ -20,6 +24,10 @@ declare module 'i18next' {
pwa: typeof pwa
settings: typeof settings
validation: typeof validation
+ 'analytics': typeof analytics
+ 'groupAdd': typeof groupAdd
+ 'groupDetail': typeof groupDetail
+ 'groups': typeof groups
'home': typeof home
}
}
diff --git a/apps/web/src/i18n/locales/en/analytics.json b/apps/web/src/i18n/locales/en/analytics.json
new file mode 100644
index 0000000..92d43ce
--- /dev/null
+++ b/apps/web/src/i18n/locales/en/analytics.json
@@ -0,0 +1,56 @@
+{
+ "back": "Back to group",
+ "subtitle": "Stats",
+ "description": "Attendance and risk management",
+ "period": "Last 30 days",
+ "loadError": {
+ "title": "We couldn't load the stats",
+ "description": "Check your connection and try again."
+ },
+ "kpi": {
+ "attendanceRate": "Average attendance",
+ "attendanceRateHint": "last 30 days",
+ "present": "Attendances this month",
+ "presentHint_one": "{{count}} class held",
+ "presentHint_other": "{{count}} classes held",
+ "recovered": "Spots recovered",
+ "recoveredHint": "from absence notices"
+ },
+ "atRisk": {
+ "title": "Students at risk",
+ "count_one": "{{count}} student",
+ "count_other": "{{count}} students",
+ "description": "Students with consecutive absences, who stopped coming, or whose attendance is dropping.",
+ "emptyTitle": "No students at risk!",
+ "emptyDescription": "No consecutive absences and no attendance below 50%.",
+ "noPhone": "No phone",
+ "monthlyRate": "{{rate}}% monthly attendance",
+ "reengage": "Reach out on WhatsApp",
+ "manage": "Manage spot",
+ "pause": "Pause spot",
+ "drop": "Remove",
+ "reasonStreak": "{{count}} absences in a row",
+ "reasonDays_one": "{{count}} day away",
+ "reasonDays_other": "{{count}} days away",
+ "reasonTrend": "Attendance dropping",
+ "reengageMessage": "Hi {{name}}! 👋 We miss you at {{group}}. We noticed you missed the last few classes and we'd love to have you back. If something's wrong with your schedule or membership, message us and we'll sort it out together.",
+ "yourClass": "your class",
+ "openingWhatsapp": "Opening WhatsApp! Message copied to clipboard."
+ },
+ "status": {
+ "dropTitle": "Remove from group",
+ "pauseTitle": "Pause spot",
+ "dropBody": "{{name}} will stop attending {{group}}. Their spot will be available for another student, and their attendance history is kept.",
+ "pauseBody": "{{name}} will be paused in {{group}}. Their spot becomes free and you can reactivate it anytime.",
+ "dropped": "{{name}} was removed from the group. Their spot is now available.",
+ "paused": "{{name}}'s spot was paused.",
+ "error": "We couldn't update the student's status."
+ },
+ "history": {
+ "title": "History",
+ "description": "Attendance history for the last classes.",
+ "error": "We couldn't load this student's history.",
+ "overall_one": "Overall attendance ({{count}} class)",
+ "overall_other": "Overall attendance ({{count}} classes)"
+ }
+}
diff --git a/apps/web/src/i18n/locales/en/common.json b/apps/web/src/i18n/locales/en/common.json
index 322bc65..198af31 100644
--- a/apps/web/src/i18n/locales/en/common.json
+++ b/apps/web/src/i18n/locales/en/common.json
@@ -38,5 +38,24 @@
"tomorrow": "Tomorrow · {{time}}",
"other": "{{date}} · {{time}}"
},
- "billingDueDay": "Due on day {{day}} of each month"
+ "billingDueDay": "Due on day {{day}} of each month",
+ "weekDayShort": {
+ "MONDAY": "Mon",
+ "TUESDAY": "Tue",
+ "WEDNESDAY": "Wed",
+ "THURSDAY": "Thu",
+ "FRIDAY": "Fri",
+ "SATURDAY": "Sat",
+ "SUNDAY": "Sun"
+ },
+ "billingTypeHint": {
+ "MONTHLY": "One charge per month",
+ "PER_CLASS": "Each class attended"
+ },
+ "attendanceStatus": {
+ "PRESENT": "Present",
+ "ABSENT": "Absent",
+ "EXCUSED": "Gave notice",
+ "NONE": "Not recorded"
+ }
}
diff --git a/apps/web/src/i18n/locales/en/groupAdd.json b/apps/web/src/i18n/locales/en/groupAdd.json
new file mode 100644
index 0000000..48321c8
--- /dev/null
+++ b/apps/web/src/i18n/locales/en/groupAdd.json
@@ -0,0 +1,97 @@
+{
+ "back": "Back to group",
+ "title": "Add members",
+ "subtitleGroup": "Add members to {{group}} one by one or in bulk from a list.",
+ "subtitle": "Add members one by one or in bulk from a list.",
+ "occupancy": "{{count}} of {{capacity}} spots taken.",
+ "tabs": {
+ "quick": "Quick add (one by one)",
+ "bulk": "Bulk import (CSV / Excel)"
+ },
+ "quick": {
+ "firstName": "First name",
+ "firstNamePlaceholder": "E.g. Lucas",
+ "lastName": "Last name",
+ "lastNamePlaceholder": "E.g. Smith",
+ "phone": "Phone / WhatsApp",
+ "phonePlaceholder": "E.g. +1 555 123 4567",
+ "phoneHint": "Used to contact them and spot duplicates.",
+ "email": "Email (optional)",
+ "emailPlaceholder": "student@example.com",
+ "notes": "Notes (optional)",
+ "notesPlaceholder": "E.g. Intermediate level, brings own gear",
+ "submit": "Save member",
+ "mustLink": "That phone already belongs to someone you've registered: add them or use another phone.",
+ "required": "Name and phone are required."
+ },
+ "existing": {
+ "alreadyInGroup": "{{name}} is already a member of this group.",
+ "linked": "You're adding {{name}} to this group. Their contact details and notes are the same as in their other groups.",
+ "found": "You already have {{name}} with this phone. Is it the same person?",
+ "foundInGroups": "You already have {{name}} with this phone (in {{groups}}). Is it the same person?",
+ "notThisPerson": "Not this person",
+ "otherPhone": "Use another phone",
+ "confirm": "Yes, add them"
+ },
+ "capacity": {
+ "title": "Group is full",
+ "description": "The group has reached its maximum capacity.",
+ "body": "{{group}} already has its maximum of {{capacity}} members. What do you want to do with {{name}}?",
+ "force": "Add anyway",
+ "waitlist": "Add to waitlist",
+ "forceHint": "If you add them anyway, the group will go over its capacity."
+ },
+ "bulkCapacity": {
+ "title": "Capacity warning",
+ "description": "The import goes over the group's capacity.",
+ "body": "You're about to import {{rows}} member(s), but the group already has {{current}} enrolled and its capacity is {{capacity}}. Import them anyway?",
+ "confirm": "Import anyway"
+ },
+ "bulk": {
+ "unsupported": "Unsupported format. Upload a .csv or .xlsx file",
+ "noContacts": "No contacts were found in the file.",
+ "detected": "Found {{count}} rows ({{valid}} valid).",
+ "processError": "There was an error processing the file.",
+ "dropzone": "Drag your file here or tap to choose it",
+ "formats": "Formats: CSV (.csv) or Excel (.xlsx)",
+ "templateHint": "Don't have a file ready? Use our template.",
+ "downloadTemplate": "Download CSV template",
+ "parsing": "Reading and analyzing the file...",
+ "preview": "Preview:",
+ "ready": "{{count}} ready to import",
+ "withErrors": "{{count}} with errors",
+ "clear": "Clear list",
+ "name": "Name",
+ "phone": "Phone",
+ "email": "Email",
+ "status": "Status",
+ "noName": "No name",
+ "noPhone": "No phone",
+ "valid": "Valid",
+ "removeRow": "Remove row",
+ "confirm": "Confirm and import ({{count}})",
+ "missingName": "Name missing",
+ "invalidPhone": "Invalid or missing phone",
+ "noSheet": "We couldn't find the main sheet in the Excel file.",
+ "noValidRows": "There are no valid members to import."
+ },
+ "template": {
+ "fileName": "gruperly_students_template.csv",
+ "header": "First name,Last name,Phone,Email,Notes",
+ "rows": "Sophia,Rodriguez,+15551234567,sophia@example.com,Intermediate level\nLucas,Smith,+15552345678,lucas@example.com,Brings own instrument\nValentina,Morales,+15553456789,,"
+ },
+ "toast": {
+ "created": "{{name}} was added to the group.",
+ "waitlisted": "{{name}} was added to the group's waitlist.",
+ "personExists": "You already have someone registered with this phone. You can add them to this group.",
+ "addError": "We couldn't add the member.",
+ "alreadyWaitlisted": "This number is already on the group's waitlist.",
+ "waitlistError": "We couldn't add them to the waitlist.",
+ "importError": "We couldn't import the members.",
+ "imported_one": "{{count}} student added.",
+ "imported_other": "{{count}} students added.",
+ "importedLinked": "{{count}} were already in your other groups.",
+ "importedDuplicates_one": "{{count}} duplicate skipped.",
+ "importedDuplicates_other": "{{count}} duplicates skipped."
+ }
+}
diff --git a/apps/web/src/i18n/locales/en/groupDetail.json b/apps/web/src/i18n/locales/en/groupDetail.json
new file mode 100644
index 0000000..5d7820b
--- /dev/null
+++ b/apps/web/src/i18n/locales/en/groupDetail.json
@@ -0,0 +1,199 @@
+{
+ "fallbackTitle": "Group",
+ "header": {
+ "backToGroups": "Back to groups",
+ "active": "Active",
+ "addMember": "Add member",
+ "stats": "Stats",
+ "charge": "Charge",
+ "chargeNoPrice": "Set the group's price to start charging",
+ "share": "Share"
+ },
+ "notFound": {
+ "title": "Group not found",
+ "description": "We couldn't load this group's information.",
+ "back": "Back to Groups"
+ },
+ "info": {
+ "schedule": "Schedule",
+ "noSchedule": "No schedule set",
+ "membersCapacity": "Members & capacity",
+ "occupancy": "Capacity used",
+ "occupancyValue": "{{count}} of {{capacity}}",
+ "noCapacity": "No capacity set",
+ "full": "Full",
+ "freeSpots_one": "{{count}} spot left",
+ "freeSpots_other": "{{count}} spots left",
+ "waiting": " · {{count}} waiting",
+ "billing": "Billing",
+ "noPrice": "No price"
+ },
+ "sections": {
+ "label": "Group list",
+ "members": "Members",
+ "pending": "Pending",
+ "searchPlaceholder": "Search by name or phone...",
+ "searchLabel": "Search the list",
+ "pendingHint": "Pre-registrations waiting for your approval and people on the waitlist for an open spot."
+ },
+ "members": {
+ "overdueFilter": "{{count}} with an overdue payment",
+ "emptyTitle": "No members in this group yet",
+ "emptyDescription": "Share the invite link or add members one by one or in bulk.",
+ "shareLink": "Share link",
+ "addMembers": "Add members",
+ "noOverdueMatch": "No member with an overdue payment matches your search.",
+ "noMatch": "No members match your search.",
+ "classDot": "Class {{index}} of {{total}}: {{status}}"
+ },
+ "row": {
+ "settled": "Up to date",
+ "dueToday": "Due today",
+ "dueTomorrow": "Due tomorrow",
+ "dueIn": "Due in {{days}} d",
+ "overdue": "Overdue · {{days}} d",
+ "noClasses": "No classes yet",
+ "attended_one": "{{attended}} of {{count}} class",
+ "attended_other": "{{attended}} of {{count}} classes"
+ },
+ "pending": {
+ "emptyTitle": "Nothing pending",
+ "emptyDescription": "Pre-registrations from the shared link and people on the waitlist will show up here for you to review.",
+ "noMatch": "Nothing pending matches your search.",
+ "preRegistrations": "Pre-registrations",
+ "preRegistrationsEmpty": "No pending pre-registrations.",
+ "waitlist": "Waitlist",
+ "waitlistEmpty": "No one on the waitlist."
+ },
+ "table": {
+ "name": "Name",
+ "phone": "Phone",
+ "requested": "Requested",
+ "detail": "Details"
+ },
+ "invite": {
+ "title": "Share invite link",
+ "description": "Send this link to your members so they can fill in their details and pre-register for the group.",
+ "linkLabel": "Group's unique link",
+ "copy": "Copy",
+ "copyTitle": "Copy to clipboard",
+ "previewTitle": "WhatsApp message preview:",
+ "copyMessage": "Copy message",
+ "copyMessageTitle": "Copy the full message to the clipboard",
+ "message": "Hi! 👋 I'd like to invite you to join *{{group}}*.\n\nPre-register using this link. Your teacher will review your request:\n{{url}}",
+ "messagePreview": "Hi! 👋 I'd like to invite you to join {{group}}.\n\nPre-register using this link. Your teacher will review your request:\n",
+ "openWhatsapp": "Open in WhatsApp",
+ "regenerate": "Reset link",
+ "regenerateTitle": "Invalidates the old link and creates a new one",
+ "footnote": "When you tap Open in WhatsApp, the full message is copied to your clipboard. If WhatsApp Web only loads the link, paste it with Ctrl+V or Cmd+V.",
+ "regenerated": "A new invite link was created.",
+ "regenerateError": "We couldn't reset the invite link.",
+ "linkCopied": "Invite link copied to clipboard!",
+ "messageCopied": "Message copied to clipboard!",
+ "copyError": "We couldn't copy automatically. Copy the text manually.",
+ "openingWhatsapp": "Opening WhatsApp! Message copied to clipboard."
+ },
+ "remove": {
+ "title": "Remove from group",
+ "body": "{{name}} will no longer be a member of {{group}}.",
+ "bodyFreeSpot": "{{name}} will no longer be a member of {{group}} and the spot will open up.",
+ "phone": "Phone: {{phone}}",
+ "waiting_one": "{{count}} person is waiting for a spot",
+ "waiting_other": "{{count}} people are waiting for a spot",
+ "promoteQuestion": "Move {{name}}, first on the waitlist, into the group?",
+ "removeAndPromote": "Remove and move {{name}} into the group",
+ "removeOnly": "Just remove from the group",
+ "confirm": "Remove from group",
+ "removed": "{{name}} was removed from the group.",
+ "removedPromoted": "{{name}} was removed from the group and {{promoted}} moved from the waitlist into the group.",
+ "hasPayments": "This member has payments on record.",
+ "error": "We couldn't remove the member from the group."
+ },
+ "preRegistration": {
+ "title": "Pre-registration details",
+ "requestedOn": "Requested on {{date}}",
+ "phone": "Phone",
+ "email": "Email",
+ "fullWarning": "The group is full. If you approve, this person will stay on the waitlist until a spot opens up.",
+ "approve": "Approve",
+ "reject": "Decline",
+ "added": "{{name}} is now a member of the group.",
+ "waitlisted": "{{name}} was added to the waitlist: the group is full.",
+ "alreadyRegistered": "There's already a member with that phone in the group. You can decline the pre-registration.",
+ "alreadyReviewed": "This pre-registration has already been reviewed.",
+ "approveError": "We couldn't approve the pre-registration.",
+ "rejected": "{{name}}'s pre-registration was declined.",
+ "rejectError": "We couldn't decline the pre-registration."
+ },
+ "waitlistEntry": {
+ "title": "Waitlist details",
+ "since": "Waiting since {{date}}",
+ "phone": "Phone",
+ "noPhone": "No phone",
+ "email": "Email",
+ "notes": "Notes",
+ "noNotes": "No notes",
+ "assignTo": "Assign to",
+ "ownGroup": "{{name}} (signed up here)",
+ "fullGroup": "{{name}} (full)",
+ "currentFull": "The group is full. Remove a member or raise the capacity to move this person into the group.",
+ "targetFull": "That group is full. Choose another group or free up a spot first.",
+ "promote": "Move into group",
+ "promoteTo": "Move to {{group}}",
+ "remove": "Remove from waitlist",
+ "promoted": "{{name}} moved from the waitlist into the group.",
+ "promotedTo": "{{name}} moved to {{group}}.",
+ "otherGroup": "another group",
+ "capacityReached": "The group is full. Remove a member or raise the capacity first.",
+ "promoteError": "We couldn't move the member into the group.",
+ "removed": "{{name}} was removed from the waitlist.",
+ "removeError": "We couldn't remove them from the waitlist."
+ },
+ "charge": {
+ "title": "Charge period",
+ "description": "Payment links for {{group}}",
+ "notConnected": "To create payment links, first link your Mercado Pago account.",
+ "connect": "Connect Mercado Pago",
+ "created": "{{linked}} of {{total}} links created",
+ "notGenerated": "Not created",
+ "copied": "Copied",
+ "copyLink": "Copy link",
+ "failedNote": "The ones that failed were saved: you can create their link from Payments without charging the student twice.",
+ "done": "Done",
+ "fee": "Group fee",
+ "dueDate": "Due date",
+ "period": "Period or description",
+ "periodPlaceholder": "E.g. October 2026",
+ "submit": "Create payment links",
+ "mpNotConnected": "Your Mercado Pago account isn't linked.",
+ "noPrice": "This group doesn't have a price yet.",
+ "noAttendees": "There are no active members to charge.",
+ "error": "We couldn't create the payments."
+ },
+ "automations": {
+ "title": "Automatic messages",
+ "summaryOff": "Off",
+ "summary_one": "{{count}} on",
+ "summary_other": "{{count}} on",
+ "channel": "WhatsApp · {{summary}}",
+ "proOnly": "Available on the Pro plan.",
+ "seePlans": "See plans",
+ "goToSettings": "Go to Settings",
+ "paymentReminderTitle": "Weekly payment reminder",
+ "paymentReminderDescription": "To anyone with a pending or overdue payment, with their payment link.",
+ "reengagementTitle": "Weekly re-engagement message",
+ "reengagementDescription": "To members at risk because of absences. At most one every 2 weeks.",
+ "saved": "The group's automatic messages were saved.",
+ "saveError": "We couldn't save the automatic messages."
+ },
+ "absenceNotices": {
+ "title": "Absence notices · this week",
+ "excused": "Excused",
+ "reason": {
+ "health": "Health",
+ "travel": "Travel",
+ "work_study": "Work or school",
+ "other": "Other"
+ }
+ }
+}
diff --git a/apps/web/src/i18n/locales/en/groups.json b/apps/web/src/i18n/locales/en/groups.json
new file mode 100644
index 0000000..ddde8fc
--- /dev/null
+++ b/apps/web/src/i18n/locales/en/groups.json
@@ -0,0 +1,68 @@
+{
+ "title": "Groups",
+ "loading": "Loading groups",
+ "loadError": "We couldn't load your groups.",
+ "empty": {
+ "title": "You don't have any groups yet",
+ "description": "Create your first group and start collecting your students' fees.",
+ "cta": "Create first group"
+ },
+ "myGroups": "My groups",
+ "newGroup": "New group",
+ "attentionPreview": {
+ "title": "Needs attention",
+ "students_one": "{{count}} student",
+ "students_other": "{{count}} students",
+ "seeAll": "See all",
+ "urgent": "Urgent:",
+ "watch": "Watch:"
+ },
+ "card": {
+ "atRisk": "{{count}} at risk",
+ "free_one": "{{count}} spot left",
+ "free_other": "{{count}} spots left",
+ "full": "Full",
+ "students_one": "{{count}} student",
+ "students_other": "{{count}} students",
+ "occupancy": "{{count}} of {{capacity}} spots taken"
+ },
+ "summary": {
+ "groups_one": "{{count}} group",
+ "groups_other": "{{count}} groups",
+ "students_one": "{{count}} student",
+ "students_other": "{{count}} students",
+ "freeSpots_one": "{{count}} free spot",
+ "freeSpots_other": "{{count}} free spots"
+ },
+ "absence": {
+ "streak": "{{count}} absences",
+ "daysAway_one": "{{count}} day away",
+ "daysAway_other": "{{count}} days away",
+ "single": "1 absence",
+ "rate": "{{rate}}% attendance"
+ },
+ "risk": {
+ "HIGH": "High risk",
+ "MEDIUM": "Moderate risk",
+ "hint": "Dropout risk: estimated likelihood that a member leaves the group."
+ },
+ "create": {
+ "heading": "New group",
+ "description": "Set up the class you'll charge for. You can always edit it later.",
+ "submit": "Create group",
+ "error": "We couldn't create the group. Check the details and try again."
+ },
+ "form": {
+ "name": "Group name",
+ "namePlaceholder": "E.g. Vinyasa Yoga · Level 1",
+ "days": "Class days",
+ "time": "Time",
+ "capacity": "Capacity",
+ "price": "Price",
+ "pricePlaceholder": "Per student",
+ "billingType": "Billing type",
+ "dueDay": "Due day",
+ "dueDayHint": "Payments will be due on day {{day}} of each month.",
+ "submitting": "Creating…"
+ }
+}
diff --git a/apps/web/src/i18n/locales/en/validation.json b/apps/web/src/i18n/locales/en/validation.json
index 32db12b..d4ca941 100644
--- a/apps/web/src/i18n/locales/en/validation.json
+++ b/apps/web/src/i18n/locales/en/validation.json
@@ -48,5 +48,14 @@
},
"payment": {
"descriptionMax": "The description is too long"
+ },
+ "lastName": {
+ "required": "Last name is required"
+ },
+ "bulk": {
+ "empty": "Send at least one student"
+ },
+ "attendance": {
+ "empty": "Send at least one attendance record"
}
}
diff --git a/apps/web/src/i18n/locales/es-419/analytics.json b/apps/web/src/i18n/locales/es-419/analytics.json
new file mode 100644
index 0000000..2be4de1
--- /dev/null
+++ b/apps/web/src/i18n/locales/es-419/analytics.json
@@ -0,0 +1,56 @@
+{
+ "back": "Volver al grupo",
+ "subtitle": "Estadísticas",
+ "description": "Asistencia y gestión de riesgo",
+ "period": "Últimos 30 días",
+ "loadError": {
+ "title": "No pudimos cargar las estadísticas",
+ "description": "Revisa tu conexión e inténtalo de nuevo."
+ },
+ "kpi": {
+ "attendanceRate": "Asistencia promedio",
+ "attendanceRateHint": "últimos 30 días",
+ "present": "Asistencias del mes",
+ "presentHint_one": "{{count}} clase dictada",
+ "presentHint_other": "{{count}} clases dictadas",
+ "recovered": "Cupos recuperados",
+ "recoveredHint": "por ausencias avisadas"
+ },
+ "atRisk": {
+ "title": "Alumnos en riesgo",
+ "count_one": "{{count}} alumno",
+ "count_other": "{{count}} alumnos",
+ "description": "Alumnos con faltas seguidas, que dejaron de venir o cuya asistencia viene en baja.",
+ "emptyTitle": "¡Sin alumnos en riesgo!",
+ "emptyDescription": "No hay ausencias consecutivas ni asistencia por debajo del 50%.",
+ "noPhone": "Sin teléfono",
+ "monthlyRate": "{{rate}}% de asistencia mensual",
+ "reengage": "Reenganchar por WhatsApp",
+ "manage": "Gestión de la vacante",
+ "pause": "Pausar vacante",
+ "drop": "Dar de baja",
+ "reasonStreak": "{{count}} faltas seguidas",
+ "reasonDays_one": "{{count}} día sin venir",
+ "reasonDays_other": "{{count}} días sin venir",
+ "reasonTrend": "Asistencia en baja",
+ "reengageMessage": "¡Hola {{name}}! 👋 Te extrañamos en {{group}}. Notamos que no viniste a las últimas clases y queremos que vuelvas. Si tienes algún problema con tus horarios o tu membresía, escríbenos y lo resolvemos juntos.",
+ "yourClass": "tu clase",
+ "openingWhatsapp": "¡Abriendo WhatsApp! Mensaje copiado al portapapeles."
+ },
+ "status": {
+ "dropTitle": "Dar de baja",
+ "pauseTitle": "Pausar vacante",
+ "dropBody": "{{name}} dejará de asistir a {{group}}. Su vacante quedará disponible para otro alumno y su historial de asistencia se conserva.",
+ "pauseBody": "{{name}} quedará pausado en {{group}}. Su vacante queda libre y puedes reactivarla cuando quieras.",
+ "dropped": "{{name}} salió del grupo. Su vacante quedó disponible.",
+ "paused": "La vacante de {{name}} quedó pausada.",
+ "error": "No pudimos actualizar el estado del alumno."
+ },
+ "history": {
+ "title": "Historial",
+ "description": "Historial de presentismo de las últimas clases.",
+ "error": "No pudimos cargar el historial de este alumno.",
+ "overall_one": "Presentismo general ({{count}} clase)",
+ "overall_other": "Presentismo general ({{count}} clases)"
+ }
+}
diff --git a/apps/web/src/i18n/locales/es-419/common.json b/apps/web/src/i18n/locales/es-419/common.json
index 082ed34..02fc824 100644
--- a/apps/web/src/i18n/locales/es-419/common.json
+++ b/apps/web/src/i18n/locales/es-419/common.json
@@ -38,5 +38,24 @@
"tomorrow": "Mañana · {{time}}",
"other": "{{date}} · {{time}}"
},
- "billingDueDay": "Vence el día {{day}} de cada mes"
+ "billingDueDay": "Vence el día {{day}} de cada mes",
+ "weekDayShort": {
+ "MONDAY": "Lun",
+ "TUESDAY": "Mar",
+ "WEDNESDAY": "Mié",
+ "THURSDAY": "Jue",
+ "FRIDAY": "Vie",
+ "SATURDAY": "Sáb",
+ "SUNDAY": "Dom"
+ },
+ "billingTypeHint": {
+ "MONTHLY": "Un cobro al mes",
+ "PER_CLASS": "Cada clase a la que asista"
+ },
+ "attendanceStatus": {
+ "PRESENT": "Presente",
+ "ABSENT": "Ausente",
+ "EXCUSED": "Avisó ausencia",
+ "NONE": "Sin registrar"
+ }
}
diff --git a/apps/web/src/i18n/locales/es-419/groupAdd.json b/apps/web/src/i18n/locales/es-419/groupAdd.json
new file mode 100644
index 0000000..4bdfa4c
--- /dev/null
+++ b/apps/web/src/i18n/locales/es-419/groupAdd.json
@@ -0,0 +1,97 @@
+{
+ "back": "Volver al grupo",
+ "title": "Agregar miembros",
+ "subtitleGroup": "Agrega miembros a {{group}} de forma individual o masiva desde una lista.",
+ "subtitle": "Agrega miembros de forma individual o masiva desde una lista.",
+ "occupancy": "{{count}} de {{capacity}} lugares ocupados.",
+ "tabs": {
+ "quick": "Carga rápida (individual)",
+ "bulk": "Carga masiva (CSV / Excel)"
+ },
+ "quick": {
+ "firstName": "Nombre",
+ "firstNamePlaceholder": "Ej.: Lucas",
+ "lastName": "Apellido",
+ "lastNamePlaceholder": "Ej.: González",
+ "phone": "Teléfono / WhatsApp",
+ "phonePlaceholder": "Ej.: +52 55 1234 5678",
+ "phoneHint": "Se usa para contactarlo y detectar duplicados.",
+ "email": "Email (opcional)",
+ "emailPlaceholder": "alumno@ejemplo.com",
+ "notes": "Notas u observaciones (opcional)",
+ "notesPlaceholder": "Ej.: Nivel intermedio, trae materiales propios",
+ "submit": "Guardar miembro",
+ "mustLink": "Ese teléfono ya es de una persona registrada: agrégala o usa otro teléfono.",
+ "required": "Nombre y teléfono son obligatorios."
+ },
+ "existing": {
+ "alreadyInGroup": "{{name}} ya es miembro de este grupo.",
+ "linked": "Agregarás a {{name}} a este grupo. Sus datos de contacto y notas son los mismos que en sus otros grupos.",
+ "found": "Ya tienes a {{name}} con este teléfono. ¿Es la misma persona?",
+ "foundInGroups": "Ya tienes a {{name}} con este teléfono (en {{groups}}). ¿Es la misma persona?",
+ "notThisPerson": "No es esta persona",
+ "otherPhone": "Usar otro teléfono",
+ "confirm": "Sí, agregarla"
+ },
+ "capacity": {
+ "title": "Cupo alcanzado",
+ "description": "El grupo llegó a su cupo máximo de miembros.",
+ "body": "El grupo {{group}} ya alcanzó su cupo de {{capacity}} miembros. ¿Qué quieres hacer con {{name}}?",
+ "force": "Agregar de todos modos",
+ "waitlist": "Sumar a la lista de espera",
+ "forceHint": "Si lo agregas de todos modos, el grupo quedará por encima de su cupo."
+ },
+ "bulkCapacity": {
+ "title": "Aviso de cupo",
+ "description": "La carga supera el cupo del grupo.",
+ "body": "Vas a importar {{rows}} miembro(s), pero el grupo ya tiene {{current}} inscrito(s) y su cupo es de {{capacity}}. ¿Quieres importarlos de todos modos?",
+ "confirm": "Importar de todos modos"
+ },
+ "bulk": {
+ "unsupported": "Formato no compatible. Sube un archivo .csv o .xlsx",
+ "noContacts": "No se detectaron contactos en el archivo.",
+ "detected": "Se detectaron {{count}} filas ({{valid}} válidas).",
+ "processError": "Error al procesar el archivo.",
+ "dropzone": "Arrastra tu archivo aquí o toca para elegirlo",
+ "formats": "Formatos: CSV (.csv) o Excel (.xlsx)",
+ "templateHint": "¿No tienes el archivo listo? Usa nuestra plantilla.",
+ "downloadTemplate": "Descargar plantilla CSV",
+ "parsing": "Leyendo y analizando el archivo...",
+ "preview": "Vista previa:",
+ "ready": "{{count}} listos para importar",
+ "withErrors": "{{count}} con errores",
+ "clear": "Limpiar lista",
+ "name": "Nombre",
+ "phone": "Teléfono",
+ "email": "Email",
+ "status": "Estado",
+ "noName": "Sin nombre",
+ "noPhone": "Sin teléfono",
+ "valid": "Válido",
+ "removeRow": "Eliminar fila",
+ "confirm": "Confirmar e importar ({{count}})",
+ "missingName": "Falta el nombre",
+ "invalidPhone": "Teléfono inválido o faltante",
+ "noSheet": "No se encontró la hoja principal en el archivo Excel.",
+ "noValidRows": "No hay miembros válidos para importar."
+ },
+ "template": {
+ "fileName": "plantilla_alumnos_gruperly.csv",
+ "header": "Nombre,Apellido,Teléfono,Email,Notas",
+ "rows": "Sofía,Rodríguez,+5215512345678,sofia@ejemplo.com,Nivel intermedio\nLucas,Benítez,+5215523456789,lucas@ejemplo.com,Trae instrumento\nValentina,Morales,+5215534567890,,"
+ },
+ "toast": {
+ "created": "{{name}} se agregó al grupo.",
+ "waitlisted": "{{name}} quedó en la lista de espera del grupo.",
+ "personExists": "Ya tienes registrada a una persona con este teléfono. Puedes agregarla a este grupo.",
+ "addError": "No se pudo agregar al miembro.",
+ "alreadyWaitlisted": "Este número ya está en la lista de espera del grupo.",
+ "waitlistError": "No se pudo sumar a la lista de espera.",
+ "importError": "No se pudieron importar los miembros.",
+ "imported_one": "{{count}} alumno agregado.",
+ "imported_other": "{{count}} alumnos agregados.",
+ "importedLinked": "{{count}} ya estaban en otros de tus grupos.",
+ "importedDuplicates_one": "{{count}} duplicado omitido.",
+ "importedDuplicates_other": "{{count}} duplicados omitidos."
+ }
+}
diff --git a/apps/web/src/i18n/locales/es-419/groupDetail.json b/apps/web/src/i18n/locales/es-419/groupDetail.json
new file mode 100644
index 0000000..666cd7f
--- /dev/null
+++ b/apps/web/src/i18n/locales/es-419/groupDetail.json
@@ -0,0 +1,199 @@
+{
+ "fallbackTitle": "Grupo",
+ "header": {
+ "backToGroups": "Volver a grupos",
+ "active": "Activo",
+ "addMember": "Agregar miembro",
+ "stats": "Estadísticas",
+ "charge": "Cobrar",
+ "chargeNoPrice": "Define el precio del grupo para poder cobrar",
+ "share": "Compartir"
+ },
+ "notFound": {
+ "title": "Grupo no encontrado",
+ "description": "No se pudo cargar la información de este grupo.",
+ "back": "Volver a Grupos"
+ },
+ "info": {
+ "schedule": "Horario",
+ "noSchedule": "Sin horario definido",
+ "membersCapacity": "Miembros y cupo",
+ "occupancy": "Ocupación del cupo",
+ "occupancyValue": "{{count}} de {{capacity}}",
+ "noCapacity": "Sin cupo definido",
+ "full": "Cupo completo",
+ "freeSpots_one": "{{count}} lugar libre",
+ "freeSpots_other": "{{count}} lugares libres",
+ "waiting": " · {{count}} en espera",
+ "billing": "Cobro",
+ "noPrice": "Sin precio"
+ },
+ "sections": {
+ "label": "Listado del grupo",
+ "members": "Miembros",
+ "pending": "Pendientes",
+ "searchPlaceholder": "Buscar por nombre o teléfono...",
+ "searchLabel": "Buscar en el listado",
+ "pendingHint": "Preinscripciones que esperan tu aprobación y personas en lista de espera por un cupo libre."
+ },
+ "members": {
+ "overdueFilter": "{{count}} con pago vencido",
+ "emptyTitle": "Todavía no hay miembros en este grupo",
+ "emptyDescription": "Puedes compartir el enlace de invitación o agregar miembros manualmente o de forma masiva.",
+ "shareLink": "Compartir enlace",
+ "addMembers": "Agregar miembros",
+ "noOverdueMatch": "Ningún miembro con pago vencido coincide con la búsqueda.",
+ "noMatch": "No se encontraron miembros que coincidan con la búsqueda.",
+ "classDot": "Clase {{index}} de {{total}}: {{status}}"
+ },
+ "row": {
+ "settled": "Al día",
+ "dueToday": "Vence hoy",
+ "dueTomorrow": "Vence mañana",
+ "dueIn": "Vence en {{days}} d",
+ "overdue": "Vencido · {{days}} d",
+ "noClasses": "Sin clases aún",
+ "attended_one": "{{attended}} de {{count}} clase",
+ "attended_other": "{{attended}} de {{count}} clases"
+ },
+ "pending": {
+ "emptyTitle": "No hay pendientes",
+ "emptyDescription": "Las preinscripciones que lleguen por el enlace compartido y las personas en lista de espera aparecerán aquí para que las revises.",
+ "noMatch": "No se encontraron pendientes que coincidan con la búsqueda.",
+ "preRegistrations": "Preinscripciones",
+ "preRegistrationsEmpty": "Sin preinscripciones pendientes.",
+ "waitlist": "Lista de espera",
+ "waitlistEmpty": "Sin nadie en la lista de espera."
+ },
+ "table": {
+ "name": "Nombre",
+ "phone": "Teléfono",
+ "requested": "Solicitado",
+ "detail": "Detalle"
+ },
+ "invite": {
+ "title": "Compartir link de invitación",
+ "description": "Envía este enlace a tus miembros para que completen sus datos y se preinscriban en el grupo.",
+ "linkLabel": "Enlace único del grupo",
+ "copy": "Copiar",
+ "copyTitle": "Copiar al portapapeles",
+ "previewTitle": "Vista previa del mensaje para WhatsApp:",
+ "copyMessage": "Copiar mensaje",
+ "copyMessageTitle": "Copiar el mensaje completo al portapapeles",
+ "message": "¡Hola! 👋 Te invito a unirte al grupo *{{group}}*.\n\nCompleta tu preinscripción en este enlace. El profesor revisará tu solicitud:\n{{url}}",
+ "messagePreview": "¡Hola! 👋 Te invito a unirte al grupo {{group}}.\n\nCompleta tu preinscripción en este enlace. El profesor revisará tu solicitud:\n",
+ "openWhatsapp": "Abrir en WhatsApp",
+ "regenerate": "Regenerar enlace",
+ "regenerateTitle": "Invalida el enlace anterior y genera uno nuevo",
+ "footnote": "Al tocar Abrir en WhatsApp, el mensaje completo se copia al portapapeles. Si WhatsApp Web solo carga el enlace, puedes pegarlo con Ctrl+V o Cmd+V.",
+ "regenerated": "Se generó un nuevo enlace de invitación.",
+ "regenerateError": "No se pudo regenerar el enlace de invitación.",
+ "linkCopied": "¡Enlace de invitación copiado al portapapeles!",
+ "messageCopied": "¡Mensaje copiado al portapapeles!",
+ "copyError": "No se pudo copiar automáticamente. Copia el texto manualmente.",
+ "openingWhatsapp": "¡Abriendo WhatsApp! Mensaje copiado al portapapeles."
+ },
+ "remove": {
+ "title": "Quitar del grupo",
+ "body": "{{name}} dejará de ser miembro del grupo {{group}}.",
+ "bodyFreeSpot": "{{name}} dejará de ser miembro del grupo {{group}} y el cupo quedará libre.",
+ "phone": "Teléfono: {{phone}}",
+ "waiting_one": "Hay {{count}} persona esperando un cupo",
+ "waiting_other": "Hay {{count}} personas esperando un cupo",
+ "promoteQuestion": "¿Quieres pasar a {{name}}, primero en la lista de espera, al grupo?",
+ "removeAndPromote": "Quitar y pasar a {{name}} al grupo",
+ "removeOnly": "Solo quitar del grupo",
+ "confirm": "Quitar del grupo",
+ "removed": "{{name}} salió del grupo.",
+ "removedPromoted": "{{name}} salió del grupo y {{promoted}} pasó de la lista de espera al grupo.",
+ "hasPayments": "Este miembro tiene cobros asociados.",
+ "error": "No se pudo quitar al miembro del grupo."
+ },
+ "preRegistration": {
+ "title": "Detalle de la preinscripción",
+ "requestedOn": "Solicitado el {{date}}",
+ "phone": "Teléfono",
+ "email": "Email",
+ "fullWarning": "El grupo alcanzó su cupo de miembros. Si apruebas, esta persona quedará en la lista de espera hasta que se libere un lugar.",
+ "approve": "Aprobar",
+ "reject": "Rechazar",
+ "added": "{{name}} ahora es miembro del grupo.",
+ "waitlisted": "{{name}} quedó en la lista de espera: el grupo está completo.",
+ "alreadyRegistered": "Ya hay un miembro con ese teléfono en el grupo. Puedes rechazar la preinscripción.",
+ "alreadyReviewed": "Esta preinscripción ya fue revisada.",
+ "approveError": "No se pudo aprobar la preinscripción.",
+ "rejected": "Se rechazó la preinscripción de {{name}}.",
+ "rejectError": "No se pudo rechazar la preinscripción."
+ },
+ "waitlistEntry": {
+ "title": "Detalle de la lista de espera",
+ "since": "En espera desde el {{date}}",
+ "phone": "Teléfono",
+ "noPhone": "Sin teléfono",
+ "email": "Email",
+ "notes": "Notas",
+ "noNotes": "Sin notas",
+ "assignTo": "Asignar a",
+ "ownGroup": "{{name}} (en el que se anotó)",
+ "fullGroup": "{{name}} (sin cupo)",
+ "currentFull": "El grupo alcanzó su cupo de miembros. Quita un miembro o aumenta el cupo para pasar a esta persona al grupo.",
+ "targetFull": "Ese grupo alcanzó su cupo de miembros. Elige otro grupo o libera un lugar primero.",
+ "promote": "Pasar al grupo",
+ "promoteTo": "Pasar a {{group}}",
+ "remove": "Quitar de la lista de espera",
+ "promoted": "{{name}} pasó de la lista de espera al grupo.",
+ "promotedTo": "{{name}} pasó a {{group}}.",
+ "otherGroup": "otro grupo",
+ "capacityReached": "El grupo alcanzó su cupo. Quita un miembro o aumenta el cupo primero.",
+ "promoteError": "No se pudo pasar al miembro al grupo.",
+ "removed": "{{name}} salió de la lista de espera.",
+ "removeError": "No se pudo quitar de la lista de espera."
+ },
+ "charge": {
+ "title": "Cobrar período",
+ "description": "Links de pago para {{group}}",
+ "notConnected": "Para crear links de pago primero vincula tu cuenta de Mercado Pago.",
+ "connect": "Conectar Mercado Pago",
+ "created": "{{linked}} de {{total}} links creados",
+ "notGenerated": "No se generó",
+ "copied": "Copiado",
+ "copyLink": "Copiar link",
+ "failedNote": "Los que no se generaron quedaron guardados: podrás crearles el link desde Cobros sin cobrarle nada al alumno.",
+ "done": "Listo",
+ "fee": "Cuota del grupo",
+ "dueDate": "Vencimiento",
+ "period": "Período o concepto",
+ "periodPlaceholder": "Ej.: Octubre 2026",
+ "submit": "Crear links de pago",
+ "mpNotConnected": "Tu cuenta de Mercado Pago no está vinculada.",
+ "noPrice": "Este grupo todavía no tiene precio.",
+ "noAttendees": "No hay miembros activos para cobrar.",
+ "error": "No pudimos crear los cobros."
+ },
+ "automations": {
+ "title": "Mensajes automáticos",
+ "summaryOff": "Apagados",
+ "summary_one": "{{count}} activo",
+ "summary_other": "{{count}} activos",
+ "channel": "WhatsApp · {{summary}}",
+ "proOnly": "Disponible en el plan Pro.",
+ "seePlans": "Ver planes",
+ "goToSettings": "Ir a Ajustes",
+ "paymentReminderTitle": "Recordatorio semanal de pago",
+ "paymentReminderDescription": "A quien tenga un cobro pendiente o vencido, con su link de pago.",
+ "reengagementTitle": "Mensaje de reenganche semanal",
+ "reengagementDescription": "A los miembros en riesgo por faltas. Como mucho uno cada 2 semanas.",
+ "saved": "Guardamos los mensajes automáticos del grupo.",
+ "saveError": "No se pudieron guardar los mensajes automáticos."
+ },
+ "absenceNotices": {
+ "title": "Faltas avisadas · esta semana",
+ "excused": "Justificada",
+ "reason": {
+ "health": "Salud",
+ "travel": "Viaje",
+ "work_study": "Trabajo o estudio",
+ "other": "Otro"
+ }
+ }
+}
diff --git a/apps/web/src/i18n/locales/es-419/groups.json b/apps/web/src/i18n/locales/es-419/groups.json
new file mode 100644
index 0000000..a69b501
--- /dev/null
+++ b/apps/web/src/i18n/locales/es-419/groups.json
@@ -0,0 +1,68 @@
+{
+ "title": "Grupos",
+ "loading": "Cargando grupos",
+ "loadError": "No pudimos cargar tus grupos.",
+ "empty": {
+ "title": "Todavía no tienes grupos",
+ "description": "Crea tu primer grupo y empieza a cobrar las cuotas de tus alumnos.",
+ "cta": "Crear primer grupo"
+ },
+ "myGroups": "Mis grupos",
+ "newGroup": "Nuevo grupo",
+ "attentionPreview": {
+ "title": "Requiere atención",
+ "students_one": "{{count}} alumno",
+ "students_other": "{{count}} alumnos",
+ "seeAll": "Ver todos",
+ "urgent": "Urgente:",
+ "watch": "Para vigilar:"
+ },
+ "card": {
+ "atRisk": "{{count}} en riesgo",
+ "free_one": "{{count}} libre",
+ "free_other": "{{count}} libres",
+ "full": "Completo",
+ "students_one": "{{count}} alumno",
+ "students_other": "{{count}} alumnos",
+ "occupancy": "{{count}} de {{capacity}} lugares ocupados"
+ },
+ "summary": {
+ "groups_one": "{{count}} grupo",
+ "groups_other": "{{count}} grupos",
+ "students_one": "{{count}} alumno",
+ "students_other": "{{count}} alumnos",
+ "freeSpots_one": "{{count}} lugar libre",
+ "freeSpots_other": "{{count}} lugares libres"
+ },
+ "absence": {
+ "streak": "{{count}} faltas",
+ "daysAway_one": "{{count}} día sin venir",
+ "daysAway_other": "{{count}} días sin venir",
+ "single": "1 falta",
+ "rate": "asistencia {{rate}}%"
+ },
+ "risk": {
+ "HIGH": "Riesgo alto",
+ "MEDIUM": "Riesgo moderado",
+ "hint": "Riesgo de abandono: probabilidad estimada de que algún miembro deje el grupo."
+ },
+ "create": {
+ "heading": "Nuevo grupo",
+ "description": "Define los datos de la clase que vas a cobrar. Después siempre puedes editarlos.",
+ "submit": "Crear grupo",
+ "error": "No pudimos crear el grupo. Revisa los datos e inténtalo de nuevo."
+ },
+ "form": {
+ "name": "Nombre del grupo",
+ "namePlaceholder": "Ej.: Yoga Vinyasa · Nivel 1",
+ "days": "Días de clase",
+ "time": "Horario",
+ "capacity": "Cupo máximo",
+ "price": "Precio",
+ "pricePlaceholder": "Por alumno",
+ "billingType": "Tipo de cobro",
+ "dueDay": "Día de vencimiento",
+ "dueDayHint": "Los cobros vencerán el día {{day}} de cada mes.",
+ "submitting": "Creando…"
+ }
+}
diff --git a/apps/web/src/i18n/locales/es-419/validation.json b/apps/web/src/i18n/locales/es-419/validation.json
index f9ff72e..c3b1f6b 100644
--- a/apps/web/src/i18n/locales/es-419/validation.json
+++ b/apps/web/src/i18n/locales/es-419/validation.json
@@ -48,5 +48,14 @@
},
"payment": {
"descriptionMax": "La descripción es demasiado larga"
+ },
+ "lastName": {
+ "required": "El apellido es obligatorio"
+ },
+ "bulk": {
+ "empty": "Envía al menos un alumno"
+ },
+ "attendance": {
+ "empty": "Envía al menos un registro de asistencia"
}
}
diff --git a/apps/web/src/i18n/locales/es-AR/analytics.json b/apps/web/src/i18n/locales/es-AR/analytics.json
new file mode 100644
index 0000000..6caf5af
--- /dev/null
+++ b/apps/web/src/i18n/locales/es-AR/analytics.json
@@ -0,0 +1,56 @@
+{
+ "back": "Volver al grupo",
+ "subtitle": "Estadísticas",
+ "description": "Asistencia y gestión de riesgo",
+ "period": "Últimos 30 días",
+ "loadError": {
+ "title": "No pudimos cargar las estadísticas",
+ "description": "Revisá tu conexión e intentá de nuevo."
+ },
+ "kpi": {
+ "attendanceRate": "Asistencia promedio",
+ "attendanceRateHint": "últimos 30 días",
+ "present": "Asistencias del mes",
+ "presentHint_one": "{{count}} clase dictada",
+ "presentHint_other": "{{count}} clases dictadas",
+ "recovered": "Cupos recuperados",
+ "recoveredHint": "por ausencias avisadas"
+ },
+ "atRisk": {
+ "title": "Alumnos en riesgo",
+ "count_one": "{{count}} alumno",
+ "count_other": "{{count}} alumnos",
+ "description": "Alumnos con faltas seguidas, que dejaron de venir o cuya asistencia viene en baja.",
+ "emptyTitle": "¡Sin alumnos en riesgo!",
+ "emptyDescription": "No hay ausencias consecutivas ni asistencia por debajo del 50%.",
+ "noPhone": "Sin teléfono",
+ "monthlyRate": "{{rate}}% de asistencia mensual",
+ "reengage": "Reenganchar por WhatsApp",
+ "manage": "Gestión de la vacante",
+ "pause": "Pausar vacante",
+ "drop": "Dar de baja",
+ "reasonStreak": "{{count}} faltas seguidas",
+ "reasonDays_one": "{{count}} día sin venir",
+ "reasonDays_other": "{{count}} días sin venir",
+ "reasonTrend": "Asistencia en baja",
+ "reengageMessage": "¡Hola {{name}}! 👋 Te extrañamos en {{group}}. Notamos que no viniste a las últimas clases y queremos que vuelvas. Si tenés algún problema con tus horarios o tu membresía, escribinos y lo resolvemos juntos.",
+ "yourClass": "tu clase",
+ "openingWhatsapp": "¡Abriendo WhatsApp! Mensaje copiado al portapapeles."
+ },
+ "status": {
+ "dropTitle": "Dar de baja",
+ "pauseTitle": "Pausar vacante",
+ "dropBody": "{{name}} va a dejar de asistir a {{group}}. Su vacante va a quedar disponible para otro alumno y su historial de asistencia se conserva.",
+ "pauseBody": "{{name}} va a quedar pausado en {{group}}. Su vacante queda libre y podés reactivarla cuando quieras.",
+ "dropped": "{{name}} salió del grupo. Su vacante quedó disponible.",
+ "paused": "La vacante de {{name}} quedó pausada.",
+ "error": "No pudimos actualizar el estado del alumno."
+ },
+ "history": {
+ "title": "Historial",
+ "description": "Historial de presentismo de las últimas clases.",
+ "error": "No pudimos cargar el historial de este alumno.",
+ "overall_one": "Presentismo general ({{count}} clase)",
+ "overall_other": "Presentismo general ({{count}} clases)"
+ }
+}
diff --git a/apps/web/src/i18n/locales/es-AR/common.json b/apps/web/src/i18n/locales/es-AR/common.json
index 082ed34..322560d 100644
--- a/apps/web/src/i18n/locales/es-AR/common.json
+++ b/apps/web/src/i18n/locales/es-AR/common.json
@@ -38,5 +38,24 @@
"tomorrow": "Mañana · {{time}}",
"other": "{{date}} · {{time}}"
},
- "billingDueDay": "Vence el día {{day}} de cada mes"
+ "billingDueDay": "Vence el día {{day}} de cada mes",
+ "weekDayShort": {
+ "MONDAY": "Lun",
+ "TUESDAY": "Mar",
+ "WEDNESDAY": "Mié",
+ "THURSDAY": "Jue",
+ "FRIDAY": "Vie",
+ "SATURDAY": "Sáb",
+ "SUNDAY": "Dom"
+ },
+ "billingTypeHint": {
+ "MONTHLY": "Un cobro por mes",
+ "PER_CLASS": "Cada clase que asista"
+ },
+ "attendanceStatus": {
+ "PRESENT": "Presente",
+ "ABSENT": "Ausente",
+ "EXCUSED": "Avisó ausencia",
+ "NONE": "Sin registrar"
+ }
}
diff --git a/apps/web/src/i18n/locales/es-AR/groupAdd.json b/apps/web/src/i18n/locales/es-AR/groupAdd.json
new file mode 100644
index 0000000..3ce3510
--- /dev/null
+++ b/apps/web/src/i18n/locales/es-AR/groupAdd.json
@@ -0,0 +1,97 @@
+{
+ "back": "Volver al grupo",
+ "title": "Agregar miembros",
+ "subtitleGroup": "Sumá miembros a {{group}} de forma individual o masiva desde una lista.",
+ "subtitle": "Sumá miembros de forma individual o masiva desde una lista.",
+ "occupancy": "{{count}} de {{capacity}} lugares ocupados.",
+ "tabs": {
+ "quick": "Carga rápida (individual)",
+ "bulk": "Carga masiva (CSV / Excel)"
+ },
+ "quick": {
+ "firstName": "Nombre",
+ "firstNamePlaceholder": "Ej.: Lucas",
+ "lastName": "Apellido",
+ "lastNamePlaceholder": "Ej.: González",
+ "phone": "Teléfono / WhatsApp",
+ "phonePlaceholder": "Ej.: +54 9 11 2345-6789",
+ "phoneHint": "Se usa para contactarlo y detectar duplicados.",
+ "email": "Email (opcional)",
+ "emailPlaceholder": "alumno@ejemplo.com",
+ "notes": "Notas u observaciones (opcional)",
+ "notesPlaceholder": "Ej.: Nivel intermedio, trae materiales propios",
+ "submit": "Guardar miembro",
+ "mustLink": "Ese teléfono ya es de una persona registrada: agregala o usá otro teléfono.",
+ "required": "Nombre y teléfono son obligatorios."
+ },
+ "existing": {
+ "alreadyInGroup": "{{name}} ya es miembro de este grupo.",
+ "linked": "Vas a agregar a {{name}} a este grupo. Sus datos de contacto y notas son los mismos que en sus otros grupos.",
+ "found": "Ya tenés a {{name}} con este teléfono. ¿Es la misma persona?",
+ "foundInGroups": "Ya tenés a {{name}} con este teléfono (en {{groups}}). ¿Es la misma persona?",
+ "notThisPerson": "No es esta persona",
+ "otherPhone": "Usar otro teléfono",
+ "confirm": "Sí, agregarla"
+ },
+ "capacity": {
+ "title": "Cupo alcanzado",
+ "description": "El grupo llegó a su cupo máximo de miembros.",
+ "body": "El grupo {{group}} ya alcanzó su cupo de {{capacity}} miembros. ¿Qué querés hacer con {{name}}?",
+ "force": "Agregar de todos modos",
+ "waitlist": "Sumar a la lista de espera",
+ "forceHint": "Si lo agregás de todos modos, el grupo va a quedar por encima de su cupo."
+ },
+ "bulkCapacity": {
+ "title": "Aviso de cupo",
+ "description": "La carga supera el cupo del grupo.",
+ "body": "Estás por importar {{rows}} miembro(s), pero el grupo ya tiene {{current}} inscrito(s) y su cupo es de {{capacity}}. ¿Querés importarlos de todos modos?",
+ "confirm": "Importar de todos modos"
+ },
+ "bulk": {
+ "unsupported": "Formato no compatible. Subí un archivo .csv o .xlsx",
+ "noContacts": "No se detectaron contactos en el archivo.",
+ "detected": "Se detectaron {{count}} filas ({{valid}} válidas).",
+ "processError": "Error al procesar el archivo.",
+ "dropzone": "Arrastrá tu archivo acá o tocá para elegirlo",
+ "formats": "Formatos: CSV (.csv) o Excel (.xlsx)",
+ "templateHint": "¿No tenés el archivo listo? Usá nuestra plantilla.",
+ "downloadTemplate": "Descargar plantilla CSV",
+ "parsing": "Leyendo y analizando el archivo...",
+ "preview": "Vista previa:",
+ "ready": "{{count}} listos para importar",
+ "withErrors": "{{count}} con errores",
+ "clear": "Limpiar lista",
+ "name": "Nombre",
+ "phone": "Teléfono",
+ "email": "Email",
+ "status": "Estado",
+ "noName": "Sin nombre",
+ "noPhone": "Sin teléfono",
+ "valid": "Válido",
+ "removeRow": "Eliminar fila",
+ "confirm": "Confirmar e importar ({{count}})",
+ "missingName": "Falta el nombre",
+ "invalidPhone": "Teléfono inválido o faltante",
+ "noSheet": "No se encontró la hoja principal en el archivo Excel.",
+ "noValidRows": "No hay miembros válidos para importar."
+ },
+ "template": {
+ "fileName": "plantilla_alumnos_gruperly.csv",
+ "header": "Nombre,Apellido,Teléfono,Email,Notas",
+ "rows": "Sofía,Rodríguez,+5491144556677,sofia@ejemplo.com,Nivel intermedio\nLucas,Benítez,+5491155667788,lucas@ejemplo.com,Trae instrumento\nValentina,Morales,+5491166778899,,"
+ },
+ "toast": {
+ "created": "{{name}} se agregó al grupo.",
+ "waitlisted": "{{name}} quedó en la lista de espera del grupo.",
+ "personExists": "Ya tenés registrada a una persona con este teléfono. Podés agregarla a este grupo.",
+ "addError": "No se pudo agregar al miembro.",
+ "alreadyWaitlisted": "Este número ya está en la lista de espera del grupo.",
+ "waitlistError": "No se pudo sumar a la lista de espera.",
+ "importError": "No se pudieron importar los miembros.",
+ "imported_one": "{{count}} alumno agregado.",
+ "imported_other": "{{count}} alumnos agregados.",
+ "importedLinked": "{{count}} ya estaban en otros de tus grupos.",
+ "importedDuplicates_one": "{{count}} duplicado omitido.",
+ "importedDuplicates_other": "{{count}} duplicados omitidos."
+ }
+}
diff --git a/apps/web/src/i18n/locales/es-AR/groupDetail.json b/apps/web/src/i18n/locales/es-AR/groupDetail.json
new file mode 100644
index 0000000..1c71d7e
--- /dev/null
+++ b/apps/web/src/i18n/locales/es-AR/groupDetail.json
@@ -0,0 +1,199 @@
+{
+ "fallbackTitle": "Grupo",
+ "header": {
+ "backToGroups": "Volver a grupos",
+ "active": "Activo",
+ "addMember": "Agregar miembro",
+ "stats": "Estadísticas",
+ "charge": "Cobrar",
+ "chargeNoPrice": "Definí el precio del grupo para poder cobrar",
+ "share": "Compartir"
+ },
+ "notFound": {
+ "title": "Grupo no encontrado",
+ "description": "No se pudo cargar la información de este grupo.",
+ "back": "Volver a Grupos"
+ },
+ "info": {
+ "schedule": "Horario",
+ "noSchedule": "Sin horario definido",
+ "membersCapacity": "Miembros y cupo",
+ "occupancy": "Ocupación del cupo",
+ "occupancyValue": "{{count}} de {{capacity}}",
+ "noCapacity": "Sin cupo definido",
+ "full": "Cupo completo",
+ "freeSpots_one": "{{count}} lugar libre",
+ "freeSpots_other": "{{count}} lugares libres",
+ "waiting": " · {{count}} en espera",
+ "billing": "Cobro",
+ "noPrice": "Sin precio"
+ },
+ "sections": {
+ "label": "Listado del grupo",
+ "members": "Miembros",
+ "pending": "Pendientes",
+ "searchPlaceholder": "Buscar por nombre o teléfono...",
+ "searchLabel": "Buscar en el listado",
+ "pendingHint": "Preinscripciones que esperan tu aprobación y personas en lista de espera por un cupo libre."
+ },
+ "members": {
+ "overdueFilter": "{{count}} con pago vencido",
+ "emptyTitle": "Todavía no hay miembros en este grupo",
+ "emptyDescription": "Podés compartir el enlace de invitación o agregar miembros a mano o de forma masiva.",
+ "shareLink": "Compartir enlace",
+ "addMembers": "Agregar miembros",
+ "noOverdueMatch": "Ningún miembro con pago vencido coincide con la búsqueda.",
+ "noMatch": "No se encontraron miembros que coincidan con la búsqueda.",
+ "classDot": "Clase {{index}} de {{total}}: {{status}}"
+ },
+ "row": {
+ "settled": "Al día",
+ "dueToday": "Vence hoy",
+ "dueTomorrow": "Vence mañana",
+ "dueIn": "Vence en {{days}} d",
+ "overdue": "Vencido · {{days}} d",
+ "noClasses": "Sin clases aún",
+ "attended_one": "{{attended}} de {{count}} clase",
+ "attended_other": "{{attended}} de {{count}} clases"
+ },
+ "pending": {
+ "emptyTitle": "No hay pendientes",
+ "emptyDescription": "Las preinscripciones que lleguen por el enlace compartido y las personas en lista de espera van a aparecer acá para que las revises.",
+ "noMatch": "No se encontraron pendientes que coincidan con la búsqueda.",
+ "preRegistrations": "Preinscripciones",
+ "preRegistrationsEmpty": "Sin preinscripciones pendientes.",
+ "waitlist": "Lista de espera",
+ "waitlistEmpty": "Sin nadie en la lista de espera."
+ },
+ "table": {
+ "name": "Nombre",
+ "phone": "Teléfono",
+ "requested": "Solicitado",
+ "detail": "Detalle"
+ },
+ "invite": {
+ "title": "Compartir link de invitación",
+ "description": "Mandales este enlace a tus miembros para que completen sus datos y se preinscriban en el grupo.",
+ "linkLabel": "Enlace único del grupo",
+ "copy": "Copiar",
+ "copyTitle": "Copiar al portapapeles",
+ "previewTitle": "Vista previa del mensaje para WhatsApp:",
+ "copyMessage": "Copiar mensaje",
+ "copyMessageTitle": "Copiar el mensaje completo al portapapeles",
+ "message": "¡Hola! 👋 Te invito a sumarte al grupo *{{group}}*.\n\nCompletá tu preinscripción en este enlace. El profesor va a revisar tu solicitud:\n{{url}}",
+ "messagePreview": "¡Hola! 👋 Te invito a sumarte al grupo {{group}}.\n\nCompletá tu preinscripción en este enlace. El profesor va a revisar tu solicitud:\n",
+ "openWhatsapp": "Abrir en WhatsApp",
+ "regenerate": "Regenerar enlace",
+ "regenerateTitle": "Invalida el enlace anterior y genera uno nuevo",
+ "footnote": "Al tocar Abrir en WhatsApp, el mensaje completo se copia al portapapeles. Si WhatsApp Web solo carga el enlace, podés pegarlo con Ctrl+V o Cmd+V.",
+ "regenerated": "Se generó un nuevo enlace de invitación.",
+ "regenerateError": "No se pudo regenerar el enlace de invitación.",
+ "linkCopied": "¡Enlace de invitación copiado al portapapeles!",
+ "messageCopied": "¡Mensaje copiado al portapapeles!",
+ "copyError": "No se pudo copiar automáticamente. Copiá el texto a mano.",
+ "openingWhatsapp": "¡Abriendo WhatsApp! Mensaje copiado al portapapeles."
+ },
+ "remove": {
+ "title": "Quitar del grupo",
+ "body": "{{name}} va a dejar de ser miembro del grupo {{group}}.",
+ "bodyFreeSpot": "{{name}} va a dejar de ser miembro del grupo {{group}} y el cupo va a quedar libre.",
+ "phone": "Teléfono: {{phone}}",
+ "waiting_one": "Hay {{count}} persona esperando un cupo",
+ "waiting_other": "Hay {{count}} personas esperando un cupo",
+ "promoteQuestion": "¿Querés pasar a {{name}}, primero en la lista de espera, al grupo?",
+ "removeAndPromote": "Quitar y pasar a {{name}} al grupo",
+ "removeOnly": "Solo quitar del grupo",
+ "confirm": "Quitar del grupo",
+ "removed": "{{name}} salió del grupo.",
+ "removedPromoted": "{{name}} salió del grupo y {{promoted}} pasó de la lista de espera al grupo.",
+ "hasPayments": "Este miembro tiene cobros asociados.",
+ "error": "No se pudo quitar al miembro del grupo."
+ },
+ "preRegistration": {
+ "title": "Detalle de la preinscripción",
+ "requestedOn": "Solicitado el {{date}}",
+ "phone": "Teléfono",
+ "email": "Email",
+ "fullWarning": "El grupo alcanzó su cupo de miembros. Si aprobás, esta persona va a quedar en la lista de espera hasta que se libere un lugar.",
+ "approve": "Aprobar",
+ "reject": "Rechazar",
+ "added": "{{name}} ahora es miembro del grupo.",
+ "waitlisted": "{{name}} quedó en la lista de espera: el grupo está completo.",
+ "alreadyRegistered": "Ya hay un miembro con ese teléfono en el grupo. Podés rechazar la preinscripción.",
+ "alreadyReviewed": "Esta preinscripción ya fue revisada.",
+ "approveError": "No se pudo aprobar la preinscripción.",
+ "rejected": "Se rechazó la preinscripción de {{name}}.",
+ "rejectError": "No se pudo rechazar la preinscripción."
+ },
+ "waitlistEntry": {
+ "title": "Detalle de la lista de espera",
+ "since": "En espera desde el {{date}}",
+ "phone": "Teléfono",
+ "noPhone": "Sin teléfono",
+ "email": "Email",
+ "notes": "Notas",
+ "noNotes": "Sin notas",
+ "assignTo": "Asignar a",
+ "ownGroup": "{{name}} (en el que se anotó)",
+ "fullGroup": "{{name}} (sin cupo)",
+ "currentFull": "El grupo alcanzó su cupo de miembros. Quitá un miembro o aumentá el cupo para pasar a esta persona al grupo.",
+ "targetFull": "Ese grupo alcanzó su cupo de miembros. Elegí otro grupo o liberá un lugar primero.",
+ "promote": "Pasar al grupo",
+ "promoteTo": "Pasar a {{group}}",
+ "remove": "Quitar de la lista de espera",
+ "promoted": "{{name}} pasó de la lista de espera al grupo.",
+ "promotedTo": "{{name}} pasó a {{group}}.",
+ "otherGroup": "otro grupo",
+ "capacityReached": "El grupo alcanzó su cupo. Quitá un miembro o aumentá el cupo primero.",
+ "promoteError": "No se pudo pasar al miembro al grupo.",
+ "removed": "{{name}} salió de la lista de espera.",
+ "removeError": "No se pudo quitar de la lista de espera."
+ },
+ "charge": {
+ "title": "Cobrar período",
+ "description": "Links de pago para {{group}}",
+ "notConnected": "Para crear links de pago primero vinculá tu cuenta de Mercado Pago.",
+ "connect": "Conectar Mercado Pago",
+ "created": "{{linked}} de {{total}} links creados",
+ "notGenerated": "No se generó",
+ "copied": "Copiado",
+ "copyLink": "Copiar link",
+ "failedNote": "Los que no se generaron quedaron guardados: vas a poder crearles el link desde Cobros sin cargarle nada al alumno.",
+ "done": "Listo",
+ "fee": "Cuota del grupo",
+ "dueDate": "Vencimiento",
+ "period": "Período o concepto",
+ "periodPlaceholder": "Ej.: Octubre 2026",
+ "submit": "Crear links de pago",
+ "mpNotConnected": "Tu cuenta de Mercado Pago no está vinculada.",
+ "noPrice": "Este grupo todavía no tiene precio.",
+ "noAttendees": "No hay miembros activos para cobrar.",
+ "error": "No pudimos crear los cobros."
+ },
+ "automations": {
+ "title": "Mensajes automáticos",
+ "summaryOff": "Apagados",
+ "summary_one": "{{count}} activo",
+ "summary_other": "{{count}} activos",
+ "channel": "WhatsApp · {{summary}}",
+ "proOnly": "Disponible en el plan Pro.",
+ "seePlans": "Ver planes",
+ "goToSettings": "Ir a Ajustes",
+ "paymentReminderTitle": "Recordatorio semanal de pago",
+ "paymentReminderDescription": "A quien tenga un cobro pendiente o vencido, con su link de pago.",
+ "reengagementTitle": "Mensaje de reenganche semanal",
+ "reengagementDescription": "A los miembros en riesgo por faltas. Como mucho uno cada 2 semanas.",
+ "saved": "Guardamos los mensajes automáticos del grupo.",
+ "saveError": "No se pudieron guardar los mensajes automáticos."
+ },
+ "absenceNotices": {
+ "title": "Faltas avisadas · esta semana",
+ "excused": "Justificada",
+ "reason": {
+ "health": "Salud",
+ "travel": "Viaje",
+ "work_study": "Trabajo o estudio",
+ "other": "Otro"
+ }
+ }
+}
diff --git a/apps/web/src/i18n/locales/es-AR/groups.json b/apps/web/src/i18n/locales/es-AR/groups.json
new file mode 100644
index 0000000..a079c7c
--- /dev/null
+++ b/apps/web/src/i18n/locales/es-AR/groups.json
@@ -0,0 +1,68 @@
+{
+ "title": "Grupos",
+ "loading": "Cargando grupos",
+ "loadError": "No pudimos cargar tus grupos.",
+ "empty": {
+ "title": "Todavía no tenés grupos",
+ "description": "Creá tu primer grupo y empezá a cobrar las cuotas de tus alumnos.",
+ "cta": "Crear primer grupo"
+ },
+ "myGroups": "Mis grupos",
+ "newGroup": "Nuevo grupo",
+ "attentionPreview": {
+ "title": "Requiere atención",
+ "students_one": "{{count}} alumno",
+ "students_other": "{{count}} alumnos",
+ "seeAll": "Ver todos",
+ "urgent": "Urgente:",
+ "watch": "A vigilar:"
+ },
+ "card": {
+ "atRisk": "{{count}} en riesgo",
+ "free_one": "{{count}} libre",
+ "free_other": "{{count}} libres",
+ "full": "Completo",
+ "students_one": "{{count}} alumno",
+ "students_other": "{{count}} alumnos",
+ "occupancy": "{{count}} de {{capacity}} lugares ocupados"
+ },
+ "summary": {
+ "groups_one": "{{count}} grupo",
+ "groups_other": "{{count}} grupos",
+ "students_one": "{{count}} alumno",
+ "students_other": "{{count}} alumnos",
+ "freeSpots_one": "{{count}} lugar libre",
+ "freeSpots_other": "{{count}} lugares libres"
+ },
+ "absence": {
+ "streak": "{{count}} faltas",
+ "daysAway_one": "{{count}} día sin venir",
+ "daysAway_other": "{{count}} días sin venir",
+ "single": "1 falta",
+ "rate": "asistencia {{rate}}%"
+ },
+ "risk": {
+ "HIGH": "Riesgo alto",
+ "MEDIUM": "Riesgo moderado",
+ "hint": "Riesgo de abandono: probabilidad estimada de que algún miembro abandone el grupo."
+ },
+ "create": {
+ "heading": "Nuevo grupo",
+ "description": "Definí los datos de la clase que vas a cobrar. Después siempre podés editarlos.",
+ "submit": "Crear grupo",
+ "error": "No pudimos crear el grupo. Revisá los datos e intentá de nuevo."
+ },
+ "form": {
+ "name": "Nombre del grupo",
+ "namePlaceholder": "Ej: Yoga Vinyasa · Nivel 1",
+ "days": "Días de clase",
+ "time": "Horario",
+ "capacity": "Cupo máximo",
+ "price": "Precio",
+ "pricePlaceholder": "Por alumno",
+ "billingType": "Tipo de cobro",
+ "dueDay": "Día de vencimiento",
+ "dueDayHint": "Los cobros vencerán el día {{day}} de cada mes.",
+ "submitting": "Creando…"
+ }
+}
diff --git a/apps/web/src/i18n/locales/es-AR/validation.json b/apps/web/src/i18n/locales/es-AR/validation.json
index 46252c9..09db9a0 100644
--- a/apps/web/src/i18n/locales/es-AR/validation.json
+++ b/apps/web/src/i18n/locales/es-AR/validation.json
@@ -48,5 +48,14 @@
},
"payment": {
"descriptionMax": "La descripción es demasiado larga"
+ },
+ "lastName": {
+ "required": "El apellido es obligatorio"
+ },
+ "bulk": {
+ "empty": "Mandá al menos un alumno"
+ },
+ "attendance": {
+ "empty": "Mandá al menos un registro de asistencia"
}
}
diff --git a/apps/web/src/i18n/locales/pt-BR/analytics.json b/apps/web/src/i18n/locales/pt-BR/analytics.json
new file mode 100644
index 0000000..6bd6b89
--- /dev/null
+++ b/apps/web/src/i18n/locales/pt-BR/analytics.json
@@ -0,0 +1,56 @@
+{
+ "back": "Voltar ao grupo",
+ "subtitle": "Estatísticas",
+ "description": "Presença e gestão de risco",
+ "period": "Últimos 30 dias",
+ "loadError": {
+ "title": "Não conseguimos carregar as estatísticas",
+ "description": "Verifique sua conexão e tente novamente."
+ },
+ "kpi": {
+ "attendanceRate": "Presença média",
+ "attendanceRateHint": "últimos 30 dias",
+ "present": "Presenças no mês",
+ "presentHint_one": "{{count}} aula dada",
+ "presentHint_other": "{{count}} aulas dadas",
+ "recovered": "Vagas recuperadas",
+ "recoveredHint": "por faltas avisadas"
+ },
+ "atRisk": {
+ "title": "Alunos em risco",
+ "count_one": "{{count}} aluno",
+ "count_other": "{{count}} alunos",
+ "description": "Alunos com faltas seguidas, que pararam de vir ou cuja presença está caindo.",
+ "emptyTitle": "Nenhum aluno em risco!",
+ "emptyDescription": "Não há faltas consecutivas nem presença abaixo de 50%.",
+ "noPhone": "Sem telefone",
+ "monthlyRate": "{{rate}}% de presença no mês",
+ "reengage": "Reengajar pelo WhatsApp",
+ "manage": "Gerenciar vaga",
+ "pause": "Pausar vaga",
+ "drop": "Dar baixa",
+ "reasonStreak": "{{count}} faltas seguidas",
+ "reasonDays_one": "{{count}} dia sem vir",
+ "reasonDays_other": "{{count}} dias sem vir",
+ "reasonTrend": "Presença em queda",
+ "reengageMessage": "Olá, {{name}}! 👋 Sentimos sua falta em {{group}}. Percebemos que você não veio às últimas aulas e queremos que você volte. Se tiver algum problema com horários ou com a mensalidade, fale com a gente e resolvemos juntos.",
+ "yourClass": "sua aula",
+ "openingWhatsapp": "Abrindo o WhatsApp! Mensagem copiada."
+ },
+ "status": {
+ "dropTitle": "Dar baixa",
+ "pauseTitle": "Pausar vaga",
+ "dropBody": "{{name}} vai deixar de frequentar {{group}}. A vaga ficará disponível para outro aluno e o histórico de presença será mantido.",
+ "pauseBody": "{{name}} ficará pausado em {{group}}. A vaga fica livre e você pode reativá-la quando quiser.",
+ "dropped": "{{name}} saiu do grupo. A vaga ficou disponível.",
+ "paused": "A vaga de {{name}} foi pausada.",
+ "error": "Não conseguimos atualizar o status do aluno."
+ },
+ "history": {
+ "title": "Histórico",
+ "description": "Histórico de presença das últimas aulas.",
+ "error": "Não conseguimos carregar o histórico deste aluno.",
+ "overall_one": "Presença geral ({{count}} aula)",
+ "overall_other": "Presença geral ({{count}} aulas)"
+ }
+}
diff --git a/apps/web/src/i18n/locales/pt-BR/common.json b/apps/web/src/i18n/locales/pt-BR/common.json
index d8f592f..6e43709 100644
--- a/apps/web/src/i18n/locales/pt-BR/common.json
+++ b/apps/web/src/i18n/locales/pt-BR/common.json
@@ -38,5 +38,24 @@
"tomorrow": "Amanhã · {{time}}",
"other": "{{date}} · {{time}}"
},
- "billingDueDay": "Vence todo dia {{day}}"
+ "billingDueDay": "Vence todo dia {{day}}",
+ "weekDayShort": {
+ "MONDAY": "Seg",
+ "TUESDAY": "Ter",
+ "WEDNESDAY": "Qua",
+ "THURSDAY": "Qui",
+ "FRIDAY": "Sex",
+ "SATURDAY": "Sáb",
+ "SUNDAY": "Dom"
+ },
+ "billingTypeHint": {
+ "MONTHLY": "Uma cobrança por mês",
+ "PER_CLASS": "Cada aula que frequentar"
+ },
+ "attendanceStatus": {
+ "PRESENT": "Presente",
+ "ABSENT": "Ausente",
+ "EXCUSED": "Avisou falta",
+ "NONE": "Sem registro"
+ }
}
diff --git a/apps/web/src/i18n/locales/pt-BR/groupAdd.json b/apps/web/src/i18n/locales/pt-BR/groupAdd.json
new file mode 100644
index 0000000..3f9dfd7
--- /dev/null
+++ b/apps/web/src/i18n/locales/pt-BR/groupAdd.json
@@ -0,0 +1,97 @@
+{
+ "back": "Voltar ao grupo",
+ "title": "Adicionar membros",
+ "subtitleGroup": "Adicione membros a {{group}} individualmente ou em massa a partir de uma lista.",
+ "subtitle": "Adicione membros individualmente ou em massa a partir de uma lista.",
+ "occupancy": "{{count}} de {{capacity}} vagas ocupadas.",
+ "tabs": {
+ "quick": "Cadastro rápido (individual)",
+ "bulk": "Cadastro em massa (CSV / Excel)"
+ },
+ "quick": {
+ "firstName": "Nome",
+ "firstNamePlaceholder": "Ex.: Lucas",
+ "lastName": "Sobrenome",
+ "lastNamePlaceholder": "Ex.: Souza",
+ "phone": "Telefone / WhatsApp",
+ "phonePlaceholder": "Ex.: +55 11 91234-5678",
+ "phoneHint": "Usado para contato e para detectar duplicados.",
+ "email": "E-mail (opcional)",
+ "emailPlaceholder": "aluno@exemplo.com",
+ "notes": "Observações (opcional)",
+ "notesPlaceholder": "Ex.: Nível intermediário, traz o próprio material",
+ "submit": "Salvar membro",
+ "mustLink": "Esse telefone já é de uma pessoa cadastrada: adicione-a ou use outro telefone.",
+ "required": "Nome e telefone são obrigatórios."
+ },
+ "existing": {
+ "alreadyInGroup": "{{name}} já é membro deste grupo.",
+ "linked": "Você vai adicionar {{name}} a este grupo. Os dados de contato e observações são os mesmos dos outros grupos.",
+ "found": "Você já tem {{name}} com este telefone. É a mesma pessoa?",
+ "foundInGroups": "Você já tem {{name}} com este telefone (em {{groups}}). É a mesma pessoa?",
+ "notThisPerson": "Não é esta pessoa",
+ "otherPhone": "Usar outro telefone",
+ "confirm": "Sim, adicionar"
+ },
+ "capacity": {
+ "title": "Vagas esgotadas",
+ "description": "O grupo atingiu o limite máximo de membros.",
+ "body": "O grupo {{group}} já atingiu o limite de {{capacity}} membros. O que você quer fazer com {{name}}?",
+ "force": "Adicionar mesmo assim",
+ "waitlist": "Colocar na lista de espera",
+ "forceHint": "Se adicionar mesmo assim, o grupo ficará acima do limite de vagas."
+ },
+ "bulkCapacity": {
+ "title": "Aviso de vagas",
+ "description": "A importação ultrapassa as vagas do grupo.",
+ "body": "Você vai importar {{rows}} membro(s), mas o grupo já tem {{current}} inscrito(s) e o limite é {{capacity}}. Quer importar mesmo assim?",
+ "confirm": "Importar mesmo assim"
+ },
+ "bulk": {
+ "unsupported": "Formato não suportado. Envie um arquivo .csv ou .xlsx",
+ "noContacts": "Nenhum contato encontrado no arquivo.",
+ "detected": "Encontramos {{count}} linhas ({{valid}} válidas).",
+ "processError": "Erro ao processar o arquivo.",
+ "dropzone": "Arraste seu arquivo aqui ou toque para escolher",
+ "formats": "Formatos: CSV (.csv) ou Excel (.xlsx)",
+ "templateHint": "Não tem o arquivo pronto? Use nosso modelo.",
+ "downloadTemplate": "Baixar modelo CSV",
+ "parsing": "Lendo e analisando o arquivo...",
+ "preview": "Prévia:",
+ "ready": "{{count}} prontos para importar",
+ "withErrors": "{{count}} com erros",
+ "clear": "Limpar lista",
+ "name": "Nome",
+ "phone": "Telefone",
+ "email": "E-mail",
+ "status": "Status",
+ "noName": "Sem nome",
+ "noPhone": "Sem telefone",
+ "valid": "Válido",
+ "removeRow": "Remover linha",
+ "confirm": "Confirmar e importar ({{count}})",
+ "missingName": "Falta o nome",
+ "invalidPhone": "Telefone inválido ou ausente",
+ "noSheet": "Não encontramos a planilha principal no arquivo Excel.",
+ "noValidRows": "Não há membros válidos para importar."
+ },
+ "template": {
+ "fileName": "modelo_alunos_gruperly.csv",
+ "header": "Nome,Sobrenome,Telefone,Email,Observações",
+ "rows": "Sofia,Rodrigues,+5511912345678,sofia@exemplo.com,Nível intermediário\nLucas,Souza,+5511923456789,lucas@exemplo.com,Traz instrumento\nValentina,Moraes,+5511934567890,,"
+ },
+ "toast": {
+ "created": "{{name}} foi adicionado ao grupo.",
+ "waitlisted": "{{name}} entrou na lista de espera do grupo.",
+ "personExists": "Você já tem uma pessoa cadastrada com este telefone. Pode adicioná-la a este grupo.",
+ "addError": "Não foi possível adicionar o membro.",
+ "alreadyWaitlisted": "Este número já está na lista de espera do grupo.",
+ "waitlistError": "Não foi possível colocar na lista de espera.",
+ "importError": "Não foi possível importar os membros.",
+ "imported_one": "{{count}} aluno adicionado.",
+ "imported_other": "{{count}} alunos adicionados.",
+ "importedLinked": "{{count}} já estavam em outros grupos seus.",
+ "importedDuplicates_one": "{{count}} duplicado ignorado.",
+ "importedDuplicates_other": "{{count}} duplicados ignorados."
+ }
+}
diff --git a/apps/web/src/i18n/locales/pt-BR/groupDetail.json b/apps/web/src/i18n/locales/pt-BR/groupDetail.json
new file mode 100644
index 0000000..e2ca907
--- /dev/null
+++ b/apps/web/src/i18n/locales/pt-BR/groupDetail.json
@@ -0,0 +1,199 @@
+{
+ "fallbackTitle": "Grupo",
+ "header": {
+ "backToGroups": "Voltar para grupos",
+ "active": "Ativo",
+ "addMember": "Adicionar membro",
+ "stats": "Estatísticas",
+ "charge": "Cobrar",
+ "chargeNoPrice": "Defina o preço do grupo para poder cobrar",
+ "share": "Compartilhar"
+ },
+ "notFound": {
+ "title": "Grupo não encontrado",
+ "description": "Não foi possível carregar as informações deste grupo.",
+ "back": "Voltar para Grupos"
+ },
+ "info": {
+ "schedule": "Horário",
+ "noSchedule": "Sem horário definido",
+ "membersCapacity": "Membros e vagas",
+ "occupancy": "Ocupação das vagas",
+ "occupancyValue": "{{count}} de {{capacity}}",
+ "noCapacity": "Sem limite de vagas",
+ "full": "Vagas esgotadas",
+ "freeSpots_one": "{{count}} vaga livre",
+ "freeSpots_other": "{{count}} vagas livres",
+ "waiting": " · {{count}} na espera",
+ "billing": "Cobrança",
+ "noPrice": "Sem preço"
+ },
+ "sections": {
+ "label": "Lista do grupo",
+ "members": "Membros",
+ "pending": "Pendentes",
+ "searchPlaceholder": "Buscar por nome ou telefone...",
+ "searchLabel": "Buscar na lista",
+ "pendingHint": "Pré-inscrições aguardando sua aprovação e pessoas na lista de espera por uma vaga."
+ },
+ "members": {
+ "overdueFilter": "{{count}} com pagamento vencido",
+ "emptyTitle": "Ainda não há membros neste grupo",
+ "emptyDescription": "Você pode compartilhar o link de convite ou adicionar membros manualmente ou em massa.",
+ "shareLink": "Compartilhar link",
+ "addMembers": "Adicionar membros",
+ "noOverdueMatch": "Nenhum membro com pagamento vencido corresponde à busca.",
+ "noMatch": "Nenhum membro corresponde à busca.",
+ "classDot": "Aula {{index}} de {{total}}: {{status}}"
+ },
+ "row": {
+ "settled": "Em dia",
+ "dueToday": "Vence hoje",
+ "dueTomorrow": "Vence amanhã",
+ "dueIn": "Vence em {{days}} d",
+ "overdue": "Vencido · {{days}} d",
+ "noClasses": "Sem aulas ainda",
+ "attended_one": "{{attended}} de {{count}} aula",
+ "attended_other": "{{attended}} de {{count}} aulas"
+ },
+ "pending": {
+ "emptyTitle": "Nada pendente",
+ "emptyDescription": "As pré-inscrições que chegarem pelo link compartilhado e as pessoas na lista de espera vão aparecer aqui para você revisar.",
+ "noMatch": "Nenhum pendente corresponde à busca.",
+ "preRegistrations": "Pré-inscrições",
+ "preRegistrationsEmpty": "Nenhuma pré-inscrição pendente.",
+ "waitlist": "Lista de espera",
+ "waitlistEmpty": "Ninguém na lista de espera."
+ },
+ "table": {
+ "name": "Nome",
+ "phone": "Telefone",
+ "requested": "Solicitado",
+ "detail": "Detalhe"
+ },
+ "invite": {
+ "title": "Compartilhar link de convite",
+ "description": "Envie este link aos seus membros para que preencham os dados e façam a pré-inscrição no grupo.",
+ "linkLabel": "Link único do grupo",
+ "copy": "Copiar",
+ "copyTitle": "Copiar para a área de transferência",
+ "previewTitle": "Prévia da mensagem para o WhatsApp:",
+ "copyMessage": "Copiar mensagem",
+ "copyMessageTitle": "Copiar a mensagem completa",
+ "message": "Olá! 👋 Convido você a participar do grupo *{{group}}*.\n\nFaça sua pré-inscrição neste link. O professor vai revisar seu pedido:\n{{url}}",
+ "messagePreview": "Olá! 👋 Convido você a participar do grupo {{group}}.\n\nFaça sua pré-inscrição neste link. O professor vai revisar seu pedido:\n",
+ "openWhatsapp": "Abrir no WhatsApp",
+ "regenerate": "Gerar novo link",
+ "regenerateTitle": "Invalida o link anterior e gera um novo",
+ "footnote": "Ao tocar em Abrir no WhatsApp, a mensagem completa é copiada. Se o WhatsApp Web carregar só o link, cole com Ctrl+V ou Cmd+V.",
+ "regenerated": "Um novo link de convite foi gerado.",
+ "regenerateError": "Não foi possível gerar um novo link de convite.",
+ "linkCopied": "Link de convite copiado!",
+ "messageCopied": "Mensagem copiada!",
+ "copyError": "Não foi possível copiar automaticamente. Copie o texto manualmente.",
+ "openingWhatsapp": "Abrindo o WhatsApp! Mensagem copiada."
+ },
+ "remove": {
+ "title": "Remover do grupo",
+ "body": "{{name}} vai deixar de ser membro do grupo {{group}}.",
+ "bodyFreeSpot": "{{name}} vai deixar de ser membro do grupo {{group}} e a vaga ficará livre.",
+ "phone": "Telefone: {{phone}}",
+ "waiting_one": "Há {{count}} pessoa esperando uma vaga",
+ "waiting_other": "Há {{count}} pessoas esperando uma vaga",
+ "promoteQuestion": "Quer passar {{name}}, primeiro da lista de espera, para o grupo?",
+ "removeAndPromote": "Remover e passar {{name}} para o grupo",
+ "removeOnly": "Só remover do grupo",
+ "confirm": "Remover do grupo",
+ "removed": "{{name}} saiu do grupo.",
+ "removedPromoted": "{{name}} saiu do grupo e {{promoted}} passou da lista de espera para o grupo.",
+ "hasPayments": "Este membro tem cobranças associadas.",
+ "error": "Não foi possível remover o membro do grupo."
+ },
+ "preRegistration": {
+ "title": "Detalhe da pré-inscrição",
+ "requestedOn": "Solicitado em {{date}}",
+ "phone": "Telefone",
+ "email": "E-mail",
+ "fullWarning": "O grupo atingiu o limite de vagas. Se você aprovar, esta pessoa ficará na lista de espera até liberar uma vaga.",
+ "approve": "Aprovar",
+ "reject": "Recusar",
+ "added": "{{name}} agora é membro do grupo.",
+ "waitlisted": "{{name}} entrou na lista de espera: o grupo está lotado.",
+ "alreadyRegistered": "Já existe um membro com esse telefone no grupo. Você pode recusar a pré-inscrição.",
+ "alreadyReviewed": "Esta pré-inscrição já foi revisada.",
+ "approveError": "Não foi possível aprovar a pré-inscrição.",
+ "rejected": "A pré-inscrição de {{name}} foi recusada.",
+ "rejectError": "Não foi possível recusar a pré-inscrição."
+ },
+ "waitlistEntry": {
+ "title": "Detalhe da lista de espera",
+ "since": "Na espera desde {{date}}",
+ "phone": "Telefone",
+ "noPhone": "Sem telefone",
+ "email": "E-mail",
+ "notes": "Observações",
+ "noNotes": "Sem observações",
+ "assignTo": "Atribuir a",
+ "ownGroup": "{{name}} (onde se inscreveu)",
+ "fullGroup": "{{name}} (sem vagas)",
+ "currentFull": "O grupo atingiu o limite de vagas. Remova um membro ou aumente as vagas para passar esta pessoa para o grupo.",
+ "targetFull": "Esse grupo atingiu o limite de vagas. Escolha outro grupo ou libere uma vaga primeiro.",
+ "promote": "Passar para o grupo",
+ "promoteTo": "Passar para {{group}}",
+ "remove": "Remover da lista de espera",
+ "promoted": "{{name}} passou da lista de espera para o grupo.",
+ "promotedTo": "{{name}} passou para {{group}}.",
+ "otherGroup": "outro grupo",
+ "capacityReached": "O grupo atingiu o limite de vagas. Remova um membro ou aumente as vagas primeiro.",
+ "promoteError": "Não foi possível passar o membro para o grupo.",
+ "removed": "{{name}} saiu da lista de espera.",
+ "removeError": "Não foi possível remover da lista de espera."
+ },
+ "charge": {
+ "title": "Cobrar período",
+ "description": "Links de pagamento para {{group}}",
+ "notConnected": "Para criar links de pagamento, primeiro vincule sua conta do Mercado Pago.",
+ "connect": "Conectar Mercado Pago",
+ "created": "{{linked}} de {{total}} links criados",
+ "notGenerated": "Não gerado",
+ "copied": "Copiado",
+ "copyLink": "Copiar link",
+ "failedNote": "Os que não foram gerados ficaram salvos: você poderá criar o link em Cobranças sem cobrar nada a mais do aluno.",
+ "done": "Pronto",
+ "fee": "Mensalidade do grupo",
+ "dueDate": "Vencimento",
+ "period": "Período ou referência",
+ "periodPlaceholder": "Ex.: Outubro 2026",
+ "submit": "Criar links de pagamento",
+ "mpNotConnected": "Sua conta do Mercado Pago não está vinculada.",
+ "noPrice": "Este grupo ainda não tem preço.",
+ "noAttendees": "Não há membros ativos para cobrar.",
+ "error": "Não conseguimos criar as cobranças."
+ },
+ "automations": {
+ "title": "Mensagens automáticas",
+ "summaryOff": "Desligadas",
+ "summary_one": "{{count}} ativa",
+ "summary_other": "{{count}} ativas",
+ "channel": "WhatsApp · {{summary}}",
+ "proOnly": "Disponível no plano Pro.",
+ "seePlans": "Ver planos",
+ "goToSettings": "Ir para Ajustes",
+ "paymentReminderTitle": "Lembrete semanal de pagamento",
+ "paymentReminderDescription": "Para quem tiver uma cobrança pendente ou vencida, com o link de pagamento.",
+ "reengagementTitle": "Mensagem semanal de reengajamento",
+ "reengagementDescription": "Para membros em risco por faltas. No máximo uma a cada 2 semanas.",
+ "saved": "Salvamos as mensagens automáticas do grupo.",
+ "saveError": "Não foi possível salvar as mensagens automáticas."
+ },
+ "absenceNotices": {
+ "title": "Faltas avisadas · esta semana",
+ "excused": "Justificada",
+ "reason": {
+ "health": "Saúde",
+ "travel": "Viagem",
+ "work_study": "Trabalho ou estudo",
+ "other": "Outro"
+ }
+ }
+}
diff --git a/apps/web/src/i18n/locales/pt-BR/groups.json b/apps/web/src/i18n/locales/pt-BR/groups.json
new file mode 100644
index 0000000..e362cf6
--- /dev/null
+++ b/apps/web/src/i18n/locales/pt-BR/groups.json
@@ -0,0 +1,68 @@
+{
+ "title": "Grupos",
+ "loading": "Carregando grupos",
+ "loadError": "Não conseguimos carregar seus grupos.",
+ "empty": {
+ "title": "Você ainda não tem grupos",
+ "description": "Crie seu primeiro grupo e comece a cobrar as mensalidades dos seus alunos.",
+ "cta": "Criar primeiro grupo"
+ },
+ "myGroups": "Meus grupos",
+ "newGroup": "Novo grupo",
+ "attentionPreview": {
+ "title": "Precisa de atenção",
+ "students_one": "{{count}} aluno",
+ "students_other": "{{count}} alunos",
+ "seeAll": "Ver todos",
+ "urgent": "Urgente:",
+ "watch": "Atenção:"
+ },
+ "card": {
+ "atRisk": "{{count}} em risco",
+ "free_one": "{{count}} vaga",
+ "free_other": "{{count}} vagas",
+ "full": "Lotado",
+ "students_one": "{{count}} aluno",
+ "students_other": "{{count}} alunos",
+ "occupancy": "{{count}} de {{capacity}} vagas ocupadas"
+ },
+ "summary": {
+ "groups_one": "{{count}} grupo",
+ "groups_other": "{{count}} grupos",
+ "students_one": "{{count}} aluno",
+ "students_other": "{{count}} alunos",
+ "freeSpots_one": "{{count}} vaga livre",
+ "freeSpots_other": "{{count}} vagas livres"
+ },
+ "absence": {
+ "streak": "{{count}} faltas",
+ "daysAway_one": "{{count}} dia sem vir",
+ "daysAway_other": "{{count}} dias sem vir",
+ "single": "1 falta",
+ "rate": "presença de {{rate}}%"
+ },
+ "risk": {
+ "HIGH": "Risco alto",
+ "MEDIUM": "Risco moderado",
+ "hint": "Risco de evasão: probabilidade estimada de algum membro deixar o grupo."
+ },
+ "create": {
+ "heading": "Novo grupo",
+ "description": "Defina os dados da aula que você vai cobrar. Depois você pode editá-los quando quiser.",
+ "submit": "Criar grupo",
+ "error": "Não conseguimos criar o grupo. Revise os dados e tente novamente."
+ },
+ "form": {
+ "name": "Nome do grupo",
+ "namePlaceholder": "Ex.: Yoga Vinyasa · Nível 1",
+ "days": "Dias de aula",
+ "time": "Horário",
+ "capacity": "Vagas",
+ "price": "Preço",
+ "pricePlaceholder": "Por aluno",
+ "billingType": "Tipo de cobrança",
+ "dueDay": "Dia de vencimento",
+ "dueDayHint": "As cobranças vencerão todo dia {{day}}.",
+ "submitting": "Criando…"
+ }
+}
diff --git a/apps/web/src/i18n/locales/pt-BR/validation.json b/apps/web/src/i18n/locales/pt-BR/validation.json
index 84ff49e..53ae887 100644
--- a/apps/web/src/i18n/locales/pt-BR/validation.json
+++ b/apps/web/src/i18n/locales/pt-BR/validation.json
@@ -48,5 +48,14 @@
},
"payment": {
"descriptionMax": "A descrição é muito longa"
+ },
+ "lastName": {
+ "required": "O sobrenome é obrigatório"
+ },
+ "bulk": {
+ "empty": "Envie pelo menos um aluno"
+ },
+ "attendance": {
+ "empty": "Envie pelo menos um registro de presença"
}
}
diff --git a/apps/web/src/lib/file-parser.ts b/apps/web/src/lib/file-parser.ts
index 2ed8b64..c671934 100644
--- a/apps/web/src/lib/file-parser.ts
+++ b/apps/web/src/lib/file-parser.ts
@@ -1,3 +1,5 @@
+import { i18n } from '../i18n/instance';
+
export type ParsedContactRow = {
id: string;
firstName: string;
@@ -141,7 +143,7 @@ export async function parseXlsxContent(buffer: ArrayBuffer): Promise
// Parse sheet1.xml
const sheetData = entries.get('xl/worksheets/sheet1.xml');
if (!sheetData) {
- throw new Error('No se pudo encontrar la hoja de cálculo principal en el archivo Excel.');
+ throw new Error(i18n.t('groupAdd:bulk.noSheet'));
}
const sheetXml = new TextDecoder().decode(sheetData);
@@ -191,13 +193,15 @@ export function normalizeRowsToContacts(rawRows: string[][]): ParsedContactRow[]
for (let i = 0; i < headerRow.length; i++) {
const col = headerRow[i];
- if (col === 'nombre' || col === 'first name' || col === 'firstname') {
+ if (col === 'nombre' || col === 'nome' || col === 'first name' || col === 'firstname') {
firstNameCol = i;
hasHeader = true;
- } else if (col === 'apellido' || col === 'last name' || col === 'lastname') {
+ } else if (col === 'apellido' || col === 'sobrenome' || col === 'last name' || col === 'lastname') {
lastNameCol = i;
hasHeader = true;
- } else if (col === 'nombre completo' || col === 'full name' || col === 'fullname' || col === 'alumno') {
+ } else if (
+ ['nombre completo', 'nome completo', 'full name', 'fullname', 'alumno', 'aluno', 'student'].includes(col)
+ ) {
nameCol = i;
hasHeader = true;
} else if (
@@ -213,7 +217,7 @@ export function normalizeRowsToContacts(rawRows: string[][]): ParsedContactRow[]
} else if (col.includes('email') || col.includes('correo')) {
emailCol = i;
hasHeader = true;
- } else if (col.includes('nota') || col.includes('obs')) {
+ } else if (col.includes('nota') || col.includes('note') || col.includes('obs')) {
notesCol = i;
hasHeader = true;
}
@@ -269,9 +273,9 @@ export function normalizeRowsToContacts(rawRows: string[][]): ParsedContactRow[]
const notes = (notesCol !== -1 ? row[notesCol] : '') || '';
const errors: string[] = [];
- if (!firstName && !fullName) errors.push('Falta el nombre');
+ if (!firstName && !fullName) errors.push(i18n.t('groupAdd:bulk.missingName'));
if (!phone || phone.replace(/\D/g, '').length < 6) {
- errors.push('Teléfono inválido o faltante');
+ errors.push(i18n.t('groupAdd:bulk.invalidPhone'));
}
contacts.push({
@@ -294,11 +298,10 @@ export function normalizeRowsToContacts(rawRows: string[][]): ParsedContactRow[]
* Downloads a sample template in CSV format for the bulk upload.
*/
export function downloadAttendeeTemplateCsv() {
+ // The template follows the UI language; the parser accepts the headers of
+ // every supported language.
const csvContent =
- 'Nombre,Apellido,Teléfono,Email,Notas\r\n' +
- 'Sofía,Rodríguez,+5491144556677,sofia@ejemplo.com,Nivel intermedio\r\n' +
- 'Lucas,Benítez,+5491155667788,lucas@ejemplo.com,Trae instrumento\r\n' +
- 'Valentina,Morales,+5491166778899,,\r\n';
+ [i18n.t('groupAdd:template.header'), ...i18n.t('groupAdd:template.rows').split('\n')].join('\r\n') + '\r\n';
const blob = new Blob([new Uint8Array([0xef, 0xbb, 0xbf]), csvContent], {
type: 'text/csv;charset=utf-8;',
@@ -306,7 +309,7 @@ export function downloadAttendeeTemplateCsv() {
const url = URL.createObjectURL(blob);
const link = document.createElement('a');
link.setAttribute('href', url);
- link.setAttribute('download', 'plantilla_alumnos_gruperly.csv');
+ link.setAttribute('download', i18n.t('groupAdd:template.fileName'));
document.body.appendChild(link);
link.click();
document.body.removeChild(link);
diff --git a/packages/shared/src/schemas/attendance.ts b/packages/shared/src/schemas/attendance.ts
index 97c2c74..9334865 100644
--- a/packages/shared/src/schemas/attendance.ts
+++ b/packages/shared/src/schemas/attendance.ts
@@ -23,7 +23,7 @@ export type MarkAttendanceRecord = z.output;
export const MarkAttendanceSchema = z.object({
classSessionId: z.string().min(1),
- records: z.array(MarkAttendanceRecordSchema).min(1, 'Debes enviar al menos un registro de asistencia'),
+ records: z.array(MarkAttendanceRecordSchema).min(1, 'attendance.empty'),
});
export type MarkAttendance = z.output;
diff --git a/packages/shared/src/schemas/attendees.ts b/packages/shared/src/schemas/attendees.ts
index 5973fc5..df1dc18 100644
--- a/packages/shared/src/schemas/attendees.ts
+++ b/packages/shared/src/schemas/attendees.ts
@@ -141,7 +141,7 @@ export type CreateAttendeeResult = z.output;
export const JoinGroupViaInviteSchema = z.object({
firstName: z.string().trim().min(1, 'name.required'),
- lastName: z.string().trim().min(1, 'El apellido es obligatorio'),
+ lastName: z.string().trim().min(1, 'lastName.required'),
phone: z.string().trim().min(6, 'phone.invalid'),
email: z.string().trim().email('email.invalid').optional().or(z.literal('')),
});
@@ -165,7 +165,7 @@ export const BulkAttendeeItemSchema = z.object({
export type BulkAttendeeItem = z.output;
export const BulkCreateAttendeesSchema = z.object({
- attendees: z.array(BulkAttendeeItemSchema).min(1, 'Debes enviar al menos un alumno'),
+ attendees: z.array(BulkAttendeeItemSchema).min(1, 'bulk.empty'),
});
export type BulkCreateAttendees = z.output;