feat(i18n): traducir Requiere atención y redactar las alertas en cada idioma
Las alertas de shared suman razon + valores para que la web las redacte; etiqueta/detalle se mantienen en español para el backend. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
2
apps/web/src/i18n/i18next.d.ts
vendored
2
apps/web/src/i18n/i18next.d.ts
vendored
@@ -10,6 +10,7 @@ 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 attention from './locales/es-AR/attention.json'
|
||||
import type validation from './locales/es-AR/validation.json'
|
||||
|
||||
// es-AR es la fuente: una clave que no exista ahí rompe el typecheck.
|
||||
@@ -24,6 +25,7 @@ declare module 'i18next' {
|
||||
pwa: typeof pwa
|
||||
settings: typeof settings
|
||||
validation: typeof validation
|
||||
'attention': typeof attention
|
||||
'analytics': typeof analytics
|
||||
'groupAdd': typeof groupAdd
|
||||
'groupDetail': typeof groupDetail
|
||||
|
||||
57
apps/web/src/i18n/locales/en/attention.json
Normal file
57
apps/web/src/i18n/locales/en/attention.json
Normal file
@@ -0,0 +1,57 @@
|
||||
{
|
||||
"title": "Needs attention",
|
||||
"back": "Back",
|
||||
"sortFilter": "Sort and filter",
|
||||
"loading": "Loading…",
|
||||
"loadingAlerts": "Loading alerts",
|
||||
"loadError": "We couldn't load the alerts.",
|
||||
"subtitle": {
|
||||
"none": "Nothing pending",
|
||||
"students_one": "{{count}} student",
|
||||
"students_other": "{{count}} students",
|
||||
"urgent_one": "{{count}} urgent",
|
||||
"urgent_other": "{{count}} urgent"
|
||||
},
|
||||
"filters": {
|
||||
"label": "Filter alerts",
|
||||
"todos": "All",
|
||||
"asistencia": "Attendance",
|
||||
"pago": "Payments"
|
||||
},
|
||||
"sections": {
|
||||
"urgente": "Urgent",
|
||||
"vigilar": "Watch"
|
||||
},
|
||||
"empty": {
|
||||
"title": "All good",
|
||||
"description": "No students need attention in this filter."
|
||||
},
|
||||
"card": {
|
||||
"remind": "Send reminder",
|
||||
"contact": "Contact",
|
||||
"actionWhatsapp": "{{action}} {{name}} on WhatsApp",
|
||||
"noPhone": "{{action}}: {{name}} has no phone on file",
|
||||
"resolve": "Resolved",
|
||||
"resolveLabel": "Mark as resolved: {{name}}, {{alert}}",
|
||||
"resolveError": "We couldn't mark it as resolved. Please try again."
|
||||
},
|
||||
"alert": {
|
||||
"racha": "{{count}} in a row",
|
||||
"rachaDetail": "Hasn't come for {{count}} classes in a row.",
|
||||
"ventana": "{{count}} absences",
|
||||
"ventanaDetail": "Missed {{count}} of the last {{classes}} classes.",
|
||||
"ultimasDetail": "Missed the last {{count}} classes.",
|
||||
"cuotas": "{{count}} fees",
|
||||
"cuotasDetail": "Owes {{count}} overdue fees.",
|
||||
"cuotasMonthsDetail": "Owes the fees for {{months}}.",
|
||||
"cuota": "Overdue fee",
|
||||
"cuotaDetail": "The {{month}} fee was due on {{date}}."
|
||||
},
|
||||
"reminder": {
|
||||
"one": "the {{group}} fee ({{amount}}) that was due on {{date}}",
|
||||
"many": "{{count}} {{group}} fees ({{amount}} in total)",
|
||||
"message": "Hi {{name}}! 👋 Just a reminder that {{owed}} is still pending.",
|
||||
"pay": " You can pay here: {{link}}",
|
||||
"closing": " Let me know if you have any questions."
|
||||
}
|
||||
}
|
||||
57
apps/web/src/i18n/locales/es-419/attention.json
Normal file
57
apps/web/src/i18n/locales/es-419/attention.json
Normal file
@@ -0,0 +1,57 @@
|
||||
{
|
||||
"title": "Requiere atención",
|
||||
"back": "Volver",
|
||||
"sortFilter": "Ordenar y filtrar",
|
||||
"loading": "Cargando…",
|
||||
"loadingAlerts": "Cargando alertas",
|
||||
"loadError": "No pudimos cargar las alertas.",
|
||||
"subtitle": {
|
||||
"none": "Nada pendiente",
|
||||
"students_one": "{{count}} alumno",
|
||||
"students_other": "{{count}} alumnos",
|
||||
"urgent_one": "{{count}} urgente",
|
||||
"urgent_other": "{{count}} urgentes"
|
||||
},
|
||||
"filters": {
|
||||
"label": "Filtrar alertas",
|
||||
"todos": "Todos",
|
||||
"asistencia": "Asistencia",
|
||||
"pago": "Pagos"
|
||||
},
|
||||
"sections": {
|
||||
"urgente": "Urgente",
|
||||
"vigilar": "Para vigilar"
|
||||
},
|
||||
"empty": {
|
||||
"title": "Todo en orden",
|
||||
"description": "No hay alumnos que requieran atención en este filtro."
|
||||
},
|
||||
"card": {
|
||||
"remind": "Enviar recordatorio",
|
||||
"contact": "Contactar",
|
||||
"actionWhatsapp": "{{action}} a {{name}} por WhatsApp",
|
||||
"noPhone": "{{action}}: {{name}} no tiene teléfono cargado",
|
||||
"resolve": "Resuelto",
|
||||
"resolveLabel": "Marcar como resuelto: {{name}}, {{alert}}",
|
||||
"resolveError": "No pudimos marcarlo como resuelto. Inténtalo de nuevo."
|
||||
},
|
||||
"alert": {
|
||||
"racha": "{{count}} seguidas",
|
||||
"rachaDetail": "No viene hace {{count}} clases seguidas.",
|
||||
"ventana": "{{count}} faltas",
|
||||
"ventanaDetail": "Faltó a {{count}} de las últimas {{classes}} clases.",
|
||||
"ultimasDetail": "Faltó a las últimas {{count}} clases.",
|
||||
"cuotas": "{{count}} cuotas",
|
||||
"cuotasDetail": "Debe {{count}} cuotas vencidas.",
|
||||
"cuotasMonthsDetail": "Debe las cuotas de {{months}}.",
|
||||
"cuota": "Cuota vencida",
|
||||
"cuotaDetail": "La cuota de {{month}} venció el {{date}}."
|
||||
},
|
||||
"reminder": {
|
||||
"one": "la cuota de {{group}} ({{amount}}) que venció el {{date}}",
|
||||
"many": "{{count}} cuotas de {{group}} ({{amount}} en total)",
|
||||
"message": "¡Hola {{name}}! 👋 Te escribo para recordarte que quedó pendiente {{owed}}.",
|
||||
"pay": " Puedes pagar aquí: {{link}}",
|
||||
"closing": " Cualquier cosa, avísame."
|
||||
}
|
||||
}
|
||||
57
apps/web/src/i18n/locales/es-AR/attention.json
Normal file
57
apps/web/src/i18n/locales/es-AR/attention.json
Normal file
@@ -0,0 +1,57 @@
|
||||
{
|
||||
"title": "Requiere atención",
|
||||
"back": "Volver",
|
||||
"sortFilter": "Ordenar y filtrar",
|
||||
"loading": "Cargando…",
|
||||
"loadingAlerts": "Cargando alertas",
|
||||
"loadError": "No pudimos cargar las alertas.",
|
||||
"subtitle": {
|
||||
"none": "Nada pendiente",
|
||||
"students_one": "{{count}} alumno",
|
||||
"students_other": "{{count}} alumnos",
|
||||
"urgent_one": "{{count}} urgente",
|
||||
"urgent_other": "{{count}} urgentes"
|
||||
},
|
||||
"filters": {
|
||||
"label": "Filtrar alertas",
|
||||
"todos": "Todos",
|
||||
"asistencia": "Asistencia",
|
||||
"pago": "Pagos"
|
||||
},
|
||||
"sections": {
|
||||
"urgente": "Urgente",
|
||||
"vigilar": "A vigilar"
|
||||
},
|
||||
"empty": {
|
||||
"title": "Todo en orden",
|
||||
"description": "No hay alumnos que requieran atención en este filtro."
|
||||
},
|
||||
"card": {
|
||||
"remind": "Enviar recordatorio",
|
||||
"contact": "Contactar",
|
||||
"actionWhatsapp": "{{action}} a {{name}} por WhatsApp",
|
||||
"noPhone": "{{action}}: {{name}} no tiene teléfono cargado",
|
||||
"resolve": "Resuelto",
|
||||
"resolveLabel": "Marcar como resuelto: {{name}}, {{alert}}",
|
||||
"resolveError": "No pudimos marcarlo como resuelto. Probá de nuevo."
|
||||
},
|
||||
"alert": {
|
||||
"racha": "{{count}} seguidas",
|
||||
"rachaDetail": "No viene hace {{count}} clases seguidas.",
|
||||
"ventana": "{{count}} faltas",
|
||||
"ventanaDetail": "Faltó a {{count}} de las últimas {{classes}} clases.",
|
||||
"ultimasDetail": "Faltó a las últimas {{count}} clases.",
|
||||
"cuotas": "{{count}} cuotas",
|
||||
"cuotasDetail": "Debe {{count}} cuotas vencidas.",
|
||||
"cuotasMonthsDetail": "Debe las cuotas de {{months}}.",
|
||||
"cuota": "Cuota vencida",
|
||||
"cuotaDetail": "La cuota de {{month}} venció el {{date}}."
|
||||
},
|
||||
"reminder": {
|
||||
"one": "la cuota de {{group}} ({{amount}}) que venció el {{date}}",
|
||||
"many": "{{count}} cuotas de {{group}} ({{amount}} en total)",
|
||||
"message": "¡Hola {{name}}! 👋 Te escribo para recordarte que quedó pendiente {{owed}}.",
|
||||
"pay": " Podés pagar acá: {{link}}",
|
||||
"closing": " Cualquier cosa, avisame."
|
||||
}
|
||||
}
|
||||
57
apps/web/src/i18n/locales/pt-BR/attention.json
Normal file
57
apps/web/src/i18n/locales/pt-BR/attention.json
Normal file
@@ -0,0 +1,57 @@
|
||||
{
|
||||
"title": "Precisa de atenção",
|
||||
"back": "Voltar",
|
||||
"sortFilter": "Ordenar e filtrar",
|
||||
"loading": "Carregando…",
|
||||
"loadingAlerts": "Carregando alertas",
|
||||
"loadError": "Não conseguimos carregar os alertas.",
|
||||
"subtitle": {
|
||||
"none": "Nada pendente",
|
||||
"students_one": "{{count}} aluno",
|
||||
"students_other": "{{count}} alunos",
|
||||
"urgent_one": "{{count}} urgente",
|
||||
"urgent_other": "{{count}} urgentes"
|
||||
},
|
||||
"filters": {
|
||||
"label": "Filtrar alertas",
|
||||
"todos": "Todos",
|
||||
"asistencia": "Presença",
|
||||
"pago": "Pagamentos"
|
||||
},
|
||||
"sections": {
|
||||
"urgente": "Urgente",
|
||||
"vigilar": "Atenção"
|
||||
},
|
||||
"empty": {
|
||||
"title": "Tudo certo",
|
||||
"description": "Nenhum aluno precisa de atenção neste filtro."
|
||||
},
|
||||
"card": {
|
||||
"remind": "Enviar lembrete",
|
||||
"contact": "Contatar",
|
||||
"actionWhatsapp": "{{action}} {{name}} pelo WhatsApp",
|
||||
"noPhone": "{{action}}: {{name}} não tem telefone cadastrado",
|
||||
"resolve": "Resolvido",
|
||||
"resolveLabel": "Marcar como resolvido: {{name}}, {{alert}}",
|
||||
"resolveError": "Não conseguimos marcar como resolvido. Tente novamente."
|
||||
},
|
||||
"alert": {
|
||||
"racha": "{{count}} seguidas",
|
||||
"rachaDetail": "Não vem há {{count}} aulas seguidas.",
|
||||
"ventana": "{{count}} faltas",
|
||||
"ventanaDetail": "Faltou a {{count}} das últimas {{classes}} aulas.",
|
||||
"ultimasDetail": "Faltou às últimas {{count}} aulas.",
|
||||
"cuotas": "{{count}} parcelas",
|
||||
"cuotasDetail": "Deve {{count}} parcelas vencidas.",
|
||||
"cuotasMonthsDetail": "Deve as parcelas de {{months}}.",
|
||||
"cuota": "Parcela vencida",
|
||||
"cuotaDetail": "A parcela de {{month}} venceu em {{date}}."
|
||||
},
|
||||
"reminder": {
|
||||
"one": "a mensalidade de {{group}} ({{amount}}) que venceu em {{date}}",
|
||||
"many": "{{count}} mensalidades de {{group}} ({{amount}} no total)",
|
||||
"message": "Olá, {{name}}! 👋 Passando para lembrar que ficou pendente {{owed}}.",
|
||||
"pay": " Você pode pagar aqui: {{link}}",
|
||||
"closing": " Qualquer coisa, me avise."
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user