Updated spanish routes to english

This commit is contained in:
Jose Selesan
2026-09-25 10:10:28 -03:00
parent 94c353f4f2
commit e736ed3547
6 changed files with 44 additions and 44 deletions

View File

@@ -17,7 +17,7 @@ const BREADCRUMBS: Record<string, Crumb[]> = {
{ label: 'Inicio', to: '/' },
{ label: 'Ajustes' },
],
'/seguridad': [
'/security': [
{ label: 'Inicio', to: '/' },
{ label: 'Ajustes', to: '/settings' },
{ label: 'Seguridad' },

View File

@@ -7,7 +7,7 @@ export function AttendeeDetailModal() {
const { selectedAttendee, setSelectedAttendee, requestRemoveAttendee, copyAbsenceNotifyUrl } =
useGroupDetail()
const absenceNotifyUrl = selectedAttendee?.notifyToken
? `${window.location.origin}/avisar-ausencia/${selectedAttendee.notifyToken}`
? `${window.location.origin}/report-absence/${selectedAttendee.notifyToken}`
: null
return (

View File

@@ -20,7 +20,7 @@ export function SettingsView() {
</div>
<div className="divide-y divide-border rounded-xl border border-border bg-surface">
<Link to="/seguridad" className="flex items-center gap-3 px-4 py-3 hover:bg-primary-soft">
<Link to="/security" className="flex items-center gap-3 px-4 py-3 hover:bg-primary-soft">
<span className="rounded-lg bg-accent-soft p-2">
<Fingerprint className="size-4 text-accent-fg" />
</span>

View File

@@ -17,10 +17,10 @@ import { Route as VerifyEmailRouteImport } from './routes/verify-email'
import { Route as AuthenticatedIndexRouteImport } from './routes/_authenticated/index'
import { Route as AuthenticatedPaymentsRouteImport } from './routes/_authenticated/payments'
import { Route as AuthenticatedProfileRouteImport } from './routes/_authenticated/profile'
import { Route as AuthenticatedSeguridadRouteImport } from './routes/_authenticated/seguridad'
import { Route as AuthenticatedSecurityRouteImport } from './routes/_authenticated/security'
import { Route as AuthenticatedSettingsRouteImport } from './routes/_authenticated/settings'
import { Route as AvisarAusenciaTokenRouteImport } from './routes/avisar-ausencia.$token'
import { Route as JoinTokenRouteImport } from './routes/join.$token'
import { Route as ReportAbsenceTokenRouteImport } from './routes/report-absence.$token'
import { Route as AuthenticatedGroupsIndexRouteImport } from './routes/_authenticated/groups/index'
import { Route as AuthenticatedGroupsNewRouteImport } from './routes/_authenticated/groups/new'
import { Route as AuthenticatedClassSessionIdAttendanceRouteImport } from './routes/_authenticated/class/$sessionId/attendance'
@@ -66,9 +66,9 @@ const AuthenticatedProfileRoute = AuthenticatedProfileRouteImport.update({
path: '/profile',
getParentRoute: () => AuthenticatedRoute,
} as any)
const AuthenticatedSeguridadRoute = AuthenticatedSeguridadRouteImport.update({
id: '/seguridad',
path: '/seguridad',
const AuthenticatedSecurityRoute = AuthenticatedSecurityRouteImport.update({
id: '/security',
path: '/security',
getParentRoute: () => AuthenticatedRoute,
} as any)
const AuthenticatedSettingsRoute = AuthenticatedSettingsRouteImport.update({
@@ -76,16 +76,16 @@ const AuthenticatedSettingsRoute = AuthenticatedSettingsRouteImport.update({
path: '/settings',
getParentRoute: () => AuthenticatedRoute,
} as any)
const AvisarAusenciaTokenRoute = AvisarAusenciaTokenRouteImport.update({
id: '/avisar-ausencia/$token',
path: '/avisar-ausencia/$token',
getParentRoute: () => rootRouteImport,
} as any)
const JoinTokenRoute = JoinTokenRouteImport.update({
id: '/join/$token',
path: '/join/$token',
getParentRoute: () => rootRouteImport,
} as any)
const ReportAbsenceTokenRoute = ReportAbsenceTokenRouteImport.update({
id: '/report-absence/$token',
path: '/report-absence/$token',
getParentRoute: () => rootRouteImport,
} as any)
const AuthenticatedGroupsIndexRoute =
AuthenticatedGroupsIndexRouteImport.update({
id: '/groups/',
@@ -124,10 +124,10 @@ export interface FileRoutesByFullPath {
'/verify-email': typeof VerifyEmailRoute
'/payments': typeof AuthenticatedPaymentsRoute
'/profile': typeof AuthenticatedProfileRoute
'/seguridad': typeof AuthenticatedSeguridadRoute
'/security': typeof AuthenticatedSecurityRoute
'/settings': typeof AuthenticatedSettingsRoute
'/avisar-ausencia/$token': typeof AvisarAusenciaTokenRoute
'/join/$token': typeof JoinTokenRoute
'/report-absence/$token': typeof ReportAbsenceTokenRoute
'/groups/new': typeof AuthenticatedGroupsNewRoute
'/groups/': typeof AuthenticatedGroupsIndexRoute
'/class/$sessionId/attendance': typeof AuthenticatedClassSessionIdAttendanceRoute
@@ -141,10 +141,10 @@ export interface FileRoutesByTo {
'/verify-email': typeof VerifyEmailRoute
'/payments': typeof AuthenticatedPaymentsRoute
'/profile': typeof AuthenticatedProfileRoute
'/seguridad': typeof AuthenticatedSeguridadRoute
'/security': typeof AuthenticatedSecurityRoute
'/settings': typeof AuthenticatedSettingsRoute
'/avisar-ausencia/$token': typeof AvisarAusenciaTokenRoute
'/join/$token': typeof JoinTokenRoute
'/report-absence/$token': typeof ReportAbsenceTokenRoute
'/': typeof AuthenticatedIndexRoute
'/groups/new': typeof AuthenticatedGroupsNewRoute
'/groups': typeof AuthenticatedGroupsIndexRoute
@@ -161,10 +161,10 @@ export interface FileRoutesById {
'/verify-email': typeof VerifyEmailRoute
'/_authenticated/payments': typeof AuthenticatedPaymentsRoute
'/_authenticated/profile': typeof AuthenticatedProfileRoute
'/_authenticated/seguridad': typeof AuthenticatedSeguridadRoute
'/_authenticated/security': typeof AuthenticatedSecurityRoute
'/_authenticated/settings': typeof AuthenticatedSettingsRoute
'/avisar-ausencia/$token': typeof AvisarAusenciaTokenRoute
'/join/$token': typeof JoinTokenRoute
'/report-absence/$token': typeof ReportAbsenceTokenRoute
'/_authenticated/': typeof AuthenticatedIndexRoute
'/_authenticated/groups/new': typeof AuthenticatedGroupsNewRoute
'/_authenticated/groups/': typeof AuthenticatedGroupsIndexRoute
@@ -182,10 +182,10 @@ export interface FileRouteTypes {
| '/verify-email'
| '/payments'
| '/profile'
| '/seguridad'
| '/security'
| '/settings'
| '/avisar-ausencia/$token'
| '/join/$token'
| '/report-absence/$token'
| '/groups/new'
| '/groups/'
| '/class/$sessionId/attendance'
@@ -199,10 +199,10 @@ export interface FileRouteTypes {
| '/verify-email'
| '/payments'
| '/profile'
| '/seguridad'
| '/security'
| '/settings'
| '/avisar-ausencia/$token'
| '/join/$token'
| '/report-absence/$token'
| '/'
| '/groups/new'
| '/groups'
@@ -218,10 +218,10 @@ export interface FileRouteTypes {
| '/verify-email'
| '/_authenticated/payments'
| '/_authenticated/profile'
| '/_authenticated/seguridad'
| '/_authenticated/security'
| '/_authenticated/settings'
| '/avisar-ausencia/$token'
| '/join/$token'
| '/report-absence/$token'
| '/_authenticated/'
| '/_authenticated/groups/new'
| '/_authenticated/groups/'
@@ -236,8 +236,8 @@ export interface RootRouteChildren {
OnboardingRoute: typeof OnboardingRoute
SignupRoute: typeof SignupRoute
VerifyEmailRoute: typeof VerifyEmailRoute
AvisarAusenciaTokenRoute: typeof AvisarAusenciaTokenRoute
JoinTokenRoute: typeof JoinTokenRoute
ReportAbsenceTokenRoute: typeof ReportAbsenceTokenRoute
}
declare module '@tanstack/react-router' {
@@ -298,11 +298,11 @@ declare module '@tanstack/react-router' {
preLoaderRoute: typeof AuthenticatedProfileRouteImport
parentRoute: typeof AuthenticatedRoute
}
'/_authenticated/seguridad': {
id: '/_authenticated/seguridad'
path: '/seguridad'
fullPath: '/seguridad'
preLoaderRoute: typeof AuthenticatedSeguridadRouteImport
'/_authenticated/security': {
id: '/_authenticated/security'
path: '/security'
fullPath: '/security'
preLoaderRoute: typeof AuthenticatedSecurityRouteImport
parentRoute: typeof AuthenticatedRoute
}
'/_authenticated/settings': {
@@ -312,13 +312,6 @@ declare module '@tanstack/react-router' {
preLoaderRoute: typeof AuthenticatedSettingsRouteImport
parentRoute: typeof AuthenticatedRoute
}
'/avisar-ausencia/$token': {
id: '/avisar-ausencia/$token'
path: '/avisar-ausencia/$token'
fullPath: '/avisar-ausencia/$token'
preLoaderRoute: typeof AvisarAusenciaTokenRouteImport
parentRoute: typeof rootRouteImport
}
'/join/$token': {
id: '/join/$token'
path: '/join/$token'
@@ -326,6 +319,13 @@ declare module '@tanstack/react-router' {
preLoaderRoute: typeof JoinTokenRouteImport
parentRoute: typeof rootRouteImport
}
'/report-absence/$token': {
id: '/report-absence/$token'
path: '/report-absence/$token'
fullPath: '/report-absence/$token'
preLoaderRoute: typeof ReportAbsenceTokenRouteImport
parentRoute: typeof rootRouteImport
}
'/_authenticated/groups/': {
id: '/_authenticated/groups/'
path: '/groups'
@@ -367,7 +367,7 @@ declare module '@tanstack/react-router' {
interface AuthenticatedRouteChildren {
AuthenticatedPaymentsRoute: typeof AuthenticatedPaymentsRoute
AuthenticatedProfileRoute: typeof AuthenticatedProfileRoute
AuthenticatedSeguridadRoute: typeof AuthenticatedSeguridadRoute
AuthenticatedSecurityRoute: typeof AuthenticatedSecurityRoute
AuthenticatedSettingsRoute: typeof AuthenticatedSettingsRoute
AuthenticatedIndexRoute: typeof AuthenticatedIndexRoute
AuthenticatedGroupsNewRoute: typeof AuthenticatedGroupsNewRoute
@@ -380,7 +380,7 @@ interface AuthenticatedRouteChildren {
const AuthenticatedRouteChildren: AuthenticatedRouteChildren = {
AuthenticatedPaymentsRoute: AuthenticatedPaymentsRoute,
AuthenticatedProfileRoute: AuthenticatedProfileRoute,
AuthenticatedSeguridadRoute: AuthenticatedSeguridadRoute,
AuthenticatedSecurityRoute: AuthenticatedSecurityRoute,
AuthenticatedSettingsRoute: AuthenticatedSettingsRoute,
AuthenticatedIndexRoute: AuthenticatedIndexRoute,
AuthenticatedGroupsNewRoute: AuthenticatedGroupsNewRoute,
@@ -402,8 +402,8 @@ const rootRouteChildren: RootRouteChildren = {
OnboardingRoute: OnboardingRoute,
SignupRoute: SignupRoute,
VerifyEmailRoute: VerifyEmailRoute,
AvisarAusenciaTokenRoute: AvisarAusenciaTokenRoute,
JoinTokenRoute: JoinTokenRoute,
ReportAbsenceTokenRoute: ReportAbsenceTokenRoute,
}
export const routeTree = rootRouteImport
._addFileChildren(rootRouteChildren)

View File

@@ -1,6 +1,6 @@
import { createFileRoute } from '@tanstack/react-router'
import { SecurityPage } from '../../features/security/SecurityPage'
export const Route = createFileRoute('/_authenticated/seguridad')({
export const Route = createFileRoute('/_authenticated/security')({
component: SecurityPage,
})

View File

@@ -3,9 +3,9 @@ import { createFileRoute } from '@tanstack/react-router'
import { AbsenceNotifyProvider } from '../features/absence-notify/AbsenceNotifyProvider'
import { AbsenceNotifyView } from '../features/absence-notify/AbsenceNotifyView'
export const Route = createFileRoute('/avisar-ausencia/$token')({
export const Route = createFileRoute('/report-absence/$token')({
component: () => {
const { token } = useParams({ from: '/avisar-ausencia/$token' })
const { token } = useParams({ from: '/report-absence/$token' })
return (
<AbsenceNotifyProvider token={token}>
<AbsenceNotifyView />