mirror of
https://github.com/mauriceboe/TREK.git
synced 2026-11-21 19:40:34 +00:00
07448e662c
A proxy in front of TREK (Cloudflare, nginx, Caddy, Traefik, HAProxy) can let in only devices that show a client certificate. The apps could not, so such a server was unusable from them. - Address screen: the server check runs natively and notices when the server asks for a certificate. Instead of "no server answered" it says so and offers to add a .p12/.pfx file; a wrong password asks again, an expired, not yet valid or keyless file is named as such. - The certificate is shown only to the host and port it was added for. iOS keeps it in the keychain (this device only), Android seals the key with an Android Keystore key. The file's password is never stored. - The web view answers the server's certificate request on both platforms; WebSocket, service worker and API requests go through with it. The offline copy, watch requests and the check use it too. - When the server stops letting the app in (certificate removed, expired or no longer trusted) while the page still comes from the service worker or the offline copy, a native check sends the app to the address screen, which offers to add another. A server that only asks and lets everyone in is left alone. - Cloudflare-style 403 and nginx-style 400 refusals without a certificate lead to the same screen instead of staying up as an error page. - Settings, Account: a Client certificate card (only with one stored) shows subject, issuer, server and expiry, with Replace and Remove. - Wiki: Native-Apps "Client certificates (mTLS)" with Cloudflare, nginx, Caddy and Traefik setup and how to make a certificate for the app. - The app icon on the unreachable screen is black on the light surface.
188 lines
12 KiB
TypeScript
188 lines
12 KiB
TypeScript
import type { TranslationStrings } from '../types';
|
|
|
|
const native: TranslationStrings = {
|
|
'native.connect.title': 'Conectar con TREK',
|
|
'native.connect.hint': 'Introduce la dirección con la que abres TREK en tu navegador.',
|
|
'native.connect.placeholder': 'https://trek.example.com',
|
|
'native.connect.submit': 'Conectar',
|
|
'native.connect.checking': 'Comprobando…',
|
|
'native.connect.tryDemo': 'Prueba la demo',
|
|
'native.connect.whatIsServer': '¿Qué es un servidor TREK?',
|
|
'native.connect.errorInvalid': 'Eso no parece una dirección web.',
|
|
'native.connect.errorUnreachable': 'Ningún servidor responde en esta dirección. Revisa la dirección y tu conexión.',
|
|
'native.connect.errorNotTrek': 'El servidor de esta dirección no es TREK.',
|
|
'native.connect.errorTooOld':
|
|
'Este servidor de TREK es demasiado antiguo para la app. Primero necesita una actualización.',
|
|
'native.offline.title': 'Servidor no disponible',
|
|
'native.offline.hint': 'TREK no pudo conectar con {server}. Revisa tu conexión e inténtalo de nuevo.',
|
|
'native.offline.retry': 'Reintentar',
|
|
'native.changeServer': 'Cambiar de servidor',
|
|
'native.login.failed': 'No se pudo iniciar sesión. Inténtalo de nuevo.',
|
|
'native.handoff.title': 'Continuar en la app',
|
|
'native.handoff.hint': 'Has iniciado sesión como {name}. Abre la app de TREK para terminar de iniciar sesión allí.',
|
|
'native.handoff.open': 'Abrir la app de TREK',
|
|
'native.handoff.switchAccount': 'Usar otra cuenta',
|
|
'native.privacy': 'Política de privacidad',
|
|
'native.settings.server': 'Servidor',
|
|
'native.settings.serverHint': 'Esta app está conectada a {server}.',
|
|
'native.welcome.headline': 'Tus viajes.\nTu plan.',
|
|
'native.welcome.sub':
|
|
'Planifica en equipo y en tiempo real: rutas, presupuestos, diario y fotolibro, con ayuda de la IA.',
|
|
'native.welcome.connect': 'Conecta tu TREK',
|
|
'native.welcome.connectSub': 'Abre la dirección que ya usas',
|
|
'native.welcome.getCloud': 'Obtén TREK Cloud',
|
|
'native.welcome.getCloudSub': 'Alojado para ti, sin instalación',
|
|
'native.cloud.title': 'TREK Cloud',
|
|
'native.cloud.sub':
|
|
'Alojamos TREK por ti, en tu propia dirección. Nada que instalar, nada que mantener: listo en minutos.',
|
|
'native.cloud.f1': 'Tu propia dirección, en servidores en Alemania',
|
|
'native.cloud.f2': 'Listo en minutos, con las actualizaciones a nuestro cargo',
|
|
'native.cloud.f3': 'Tus datos siguen siendo tuyos: sin anuncios, sin rastreo',
|
|
'native.cloud.cta': 'Empezar',
|
|
'native.cloud.haveServer': 'Ya tengo un servidor TREK',
|
|
'native.connecting': 'Conectando con {host}',
|
|
'native.back': 'Atrás',
|
|
'native.plans.title': 'Elige tu plan',
|
|
'native.plans.sub': 'TREK alojado en tu propia dirección. Cambia o cancela cuando quieras.',
|
|
'native.plans.monthly': 'Mensual',
|
|
'native.plans.yearly': 'Anual',
|
|
'native.plans.perMonth': 'al mes',
|
|
'native.plans.perYear': 'al año',
|
|
'native.plans.aiDocs': '{n} documentos con IA al mes',
|
|
'native.plans.noAi': 'Sin documentos con IA',
|
|
'native.plans.storage': '{n} GB de almacenamiento',
|
|
'native.plans.unlimited': 'Lugares, viajes y personas sin límite',
|
|
'native.plans.subscribe': 'Suscribirse',
|
|
'native.plans.loadError': 'No se han podido cargar los planes. Revisa tu conexión e inténtalo de nuevo.',
|
|
'native.plans.retry': 'Reintentar',
|
|
'native.plans.soon': 'La suscripción dentro de la app aún no está disponible.',
|
|
'native.plans.closed': 'TREK Cloud abre pronto. Podrás suscribirte aquí desde el día de la apertura.',
|
|
'native.claim.title': 'Casi listo',
|
|
'native.claim.sub': 'Elige tu dirección. La preparamos al instante.',
|
|
'native.claim.addressLabel': 'Tu dirección',
|
|
'native.claim.taken': 'Esa dirección ya está ocupada.',
|
|
'native.claim.invalid': 'Tres o más letras, números y guiones.',
|
|
'native.claim.reserved': 'Esa dirección está reservada.',
|
|
'native.claim.free': 'Disponible',
|
|
'native.claim.emailLabel': 'Correo',
|
|
'native.claim.emailHint': 'Para tu cuenta y los avisos sobre tu contrato.',
|
|
'native.claim.passwordLabel': 'Contraseña',
|
|
'native.claim.passwordHint':
|
|
'Al menos 8 caracteres. La contraseña debe contener mayúsculas, minúsculas, números y un carácter especial.',
|
|
'native.claim.subscribe': 'Suscribirse por {price}',
|
|
'native.claim.cancelled': 'Compra cancelada.',
|
|
'native.claim.failed': 'La compra no se completó. Inténtalo de nuevo.',
|
|
'native.claim.redeemFailed': 'No pudimos preparar tu TREK. Inténtalo de nuevo.',
|
|
'native.claim.closedRefund':
|
|
'TREK Cloud abre pronto. Google Play te reembolsa esta compra automáticamente en un plazo de tres días.',
|
|
'native.plans.restore': 'Restaurar compras',
|
|
'native.plans.restoring': 'Comprobando tus compras…',
|
|
'native.plans.restoreNone': 'No se encontró ninguna suscripción activa en este ID de Apple.',
|
|
'native.plans.restoreFailed': 'No pudimos restaurar tu TREK. Inténtalo de nuevo.',
|
|
'native.plans.legal':
|
|
'El pago se cobra a tu ID de Apple al confirmar. La suscripción se renueva automáticamente salvo que la canceles al menos 24 horas antes de que termine el periodo. Gestiónala o cancélala en los ajustes de tu cuenta del App Store.',
|
|
'native.plans.terms': 'Términos de uso de Apple (EULA)',
|
|
'native.plans.ourTerms': 'Condiciones de TREK Cloud',
|
|
'native.plans.legalAndroid':
|
|
'El pago se carga a tu cuenta de Google al confirmar. La suscripción se renueva automáticamente salvo que la canceles antes de que termine el periodo. Gestiónala o cancélala en Google Play, en Perfil, Pagos y suscripciones, Suscripciones.',
|
|
'native.plans.restoreNoneAndroid': 'No se encontró ninguna suscripción activa en esta cuenta de Google.',
|
|
'native.claim.agree':
|
|
'Al suscribirte, se aplican las condiciones de TREK Cloud a la provisión de tu instancia (proveedor: Maurice Bötger, Rostock). La tienda gestiona la compra, el pago y los reembolsos.',
|
|
'native.claim.pending': 'Tu compra está pendiente de aprobación. Cuando se complete, toca Restaurar compras.',
|
|
'native.provisioning.title': 'Preparando tu TREK',
|
|
'native.provisioning.sub': 'Preparando {host}. Solo tarda un minuto.',
|
|
'native.provisioning.failedTitle': 'Casi listo',
|
|
'native.provisioning.failedSub': 'Tu TREK está en camino. Inténtalo en un momento o abre la app más tarde.',
|
|
'native.provisioning.retry': 'Probar ahora',
|
|
'native.update.title': 'Actualiza la app TREK',
|
|
'native.update.body': 'Este servidor necesita una versión más reciente de la app para que todo funcione.',
|
|
'native.update.open': 'Actualizar',
|
|
'native.lock.title': 'TREK está bloqueado',
|
|
'native.lock.unlock': 'Desbloquear',
|
|
'native.lock.reason': 'Desbloquear TREK',
|
|
'native.lock.settingTitle': 'Bloqueo de la app',
|
|
'native.lock.setting': 'Bloquear con Face ID o código',
|
|
'native.lock.settingHint':
|
|
'Lo pide al abrir TREK y tras medio minuto en segundo plano, y oculta la app en el selector de apps.',
|
|
'native.share.title': '¿En qué viaje importar?',
|
|
'native.share.noTrips': 'Aún no hay viajes. Crea uno primero y vuelve a compartir el documento.',
|
|
'native.share.linkTitle': '¿Qué debe hacer TREK con este enlace?',
|
|
'native.share.saveLink': 'Guardar en los enlaces del viaje',
|
|
'native.share.saveLinkHint': 'Todos en el viaje lo encuentran en Enlaces',
|
|
'native.share.readBooking': 'Leer una reserva de él',
|
|
'native.share.readBookingHint': 'Para una página de confirmación',
|
|
'native.share.linkTrip': '¿En qué viaje guardar el enlace?',
|
|
'native.share.linkSaved': 'Enlace guardado',
|
|
'native.share.linkUnsupported': 'Activa Collab para guardar enlaces en un viaje.',
|
|
'native.pushPrompt.title': '¿Activar las notificaciones?',
|
|
'native.pushPrompt.body':
|
|
'Entérate al momento cuando alguien escriba en el chat de un viaje, te invite o cambie una reserva. Puedes cambiarlo cuando quieras en los ajustes.',
|
|
'native.pushPrompt.enable': 'Activar',
|
|
'native.pushPrompt.later': 'Ahora no',
|
|
'native.widget.dayOf': 'Día {n} de {m}',
|
|
'native.widget.today': 'Hoy',
|
|
'native.widget.noTrip': 'Aún no hay ningún viaje planeado',
|
|
'native.widget.inDays': 'en {n} días',
|
|
'native.widget.tomorrow': 'Mañana',
|
|
'native.widget.nothingPlanned': 'Nada planeado para hoy',
|
|
'native.widget.dayDone': 'Todo hecho por hoy',
|
|
'native.widget.noBookings': 'No hay reservas próximas',
|
|
'native.widget.noTodos': 'No queda nada pendiente',
|
|
'native.widget.now': 'Ahora',
|
|
'native.widget.travellers': 'viajeros',
|
|
'native.widget.missing': 'por empacar',
|
|
'native.widget.countries': 'países',
|
|
'native.widget.world': 'del mundo',
|
|
'native.widget.group': 'Grupo de viaje',
|
|
'native.widget.poll': 'Votación',
|
|
'native.widget.votes': 'votos',
|
|
'native.widget.noMessages': 'Aún no hay mensajes',
|
|
'native.widget.departure': 'Salida',
|
|
'native.gate.title': '{name} protege este servidor',
|
|
'native.gate.titleUnknown': 'Una página de inicio de sesión protege este servidor',
|
|
'native.gate.titleBasic': 'Una solicitud de contraseña protege este servidor',
|
|
'native.gate.hint': 'Inicia sesión allí una vez dentro de la app, como en un navegador. La app conserva esa sesión.',
|
|
'native.gate.signIn': 'Iniciar sesión en {name}',
|
|
'native.gate.signInGeneric': 'Iniciar sesión',
|
|
'native.gate.googleNote':
|
|
'Un inicio de sesión con Google no funciona dentro de una app. Si el tuyo lo usa, deja pasar TREK por el proxy.',
|
|
'native.gate.basicHint':
|
|
'La app no puede responder a esta solicitud. Deja pasar TREK en tu proxy: TREK sigue pidiendo su propio inicio de sesión.',
|
|
'native.gate.help': 'Usar la app detrás de un proxy de inicio de sesión',
|
|
'native.cert.title': 'Este servidor pide un certificado de cliente',
|
|
'native.cert.titleRefused': 'El servidor no aceptó el certificado',
|
|
'native.cert.hint':
|
|
'Un proxy delante solo deja pasar a los dispositivos que muestran un certificado. Añade el archivo .p12 o .pfx creado para este dispositivo. La app solo se lo muestra a {host}.',
|
|
'native.cert.hintRefused':
|
|
'El proxy no confía, o ya no confía, en el certificado de la app. Elige el archivo que espera.',
|
|
'native.cert.choose': 'Añadir archivo de certificado',
|
|
'native.cert.chooseOther': 'Elegir otro certificado',
|
|
'native.cert.help': 'Usar la app con un certificado de cliente',
|
|
'native.cert.passwordTitle': 'Contraseña del certificado',
|
|
'native.cert.passwordMessage': 'Introduce la contraseña del archivo de certificado. La app no la guarda.',
|
|
'native.cert.passwordPlaceholder': 'Contraseña',
|
|
'native.cert.passwordOk': 'Añadir',
|
|
'native.cert.passwordCancel': 'Cancelar',
|
|
'native.cert.passwordWrong': 'Esta contraseña no abre el archivo. Inténtalo de nuevo.',
|
|
'native.cert.errorFormat':
|
|
'La app no puede leer este archivo. Necesita un archivo .p12 o .pfx con el certificado y su clave privada.',
|
|
'native.cert.errorNoKey': 'Este archivo no contiene clave privada. Exporta el certificado junto con su clave.',
|
|
'native.cert.errorExpired': 'Este certificado ha caducado.',
|
|
'native.cert.errorNotYetValid':
|
|
'Este certificado aún no es válido. Comprueba la fecha y la hora de este dispositivo.',
|
|
'native.cert.errorStore': 'La app no pudo guardar el certificado. Inténtalo de nuevo.',
|
|
'native.cert.unreachableTitle': 'Se necesita un certificado',
|
|
'native.cert.unreachableHint': '{server} solo deja pasar a dispositivos con un certificado de cliente de confianza.',
|
|
'native.cert.settingTitle': 'Certificado de cliente',
|
|
'native.cert.settingIssuer': 'Emitido por {issuer}',
|
|
'native.cert.settingServer': 'Servidor',
|
|
'native.cert.settingValidUntil': 'Válido hasta',
|
|
'native.cert.settingHint': 'La app solo muestra este certificado a {host}, cuando su proxy lo pide.',
|
|
'native.cert.settingReplace': 'Reemplazar',
|
|
'native.cert.settingRemove': 'Eliminar',
|
|
'native.cert.removeTitle': '¿Eliminar el certificado?',
|
|
'native.cert.removeMessage': 'Sin él, el proxy delante de {host} ya no deja entrar a la app hasta que añadas otro.',
|
|
};
|
|
|
|
export default native;
|