Files
TREK/shared/src/i18n/en/native.ts
T
Maurice 07448e662c feat(native): client certificates for servers behind mutual TLS
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.
2026-11-09 12:03:31 +01:00

186 lines
11 KiB
TypeScript

import type { TranslationStrings } from '../types';
const native: TranslationStrings = {
'native.connect.title': 'Connect to TREK',
'native.connect.hint': 'Enter the address you open TREK at in your browser.',
'native.connect.placeholder': 'https://trek.example.com',
'native.connect.submit': 'Connect',
'native.connect.checking': 'Checking…',
'native.connect.tryDemo': 'Try the demo',
'native.connect.whatIsServer': 'What is a TREK server?',
'native.connect.errorInvalid': 'That does not look like a web address.',
'native.connect.errorUnreachable': 'No server answered at this address. Check the address and your connection.',
'native.connect.errorNotTrek': 'The server at this address is not TREK.',
'native.connect.errorTooOld': 'This TREK server is too old for the app. It needs an update first.',
'native.offline.title': 'Server not reachable',
'native.offline.hint': 'TREK could not reach {server}. Check your connection and try again.',
'native.offline.retry': 'Try again',
'native.changeServer': 'Change server',
'native.login.failed': 'Signing in did not work. Please try again.',
'native.handoff.title': 'Continue in the app',
'native.handoff.hint': 'You are signed in as {name}. Open the TREK app to finish signing in there.',
'native.handoff.open': 'Open the TREK app',
'native.handoff.switchAccount': 'Use a different account',
'native.privacy': 'Privacy policy',
'native.settings.server': 'Server',
'native.settings.serverHint': 'This app is connected to {server}.',
'native.welcome.headline': 'Your Trips.\nYour Plan.',
'native.welcome.sub': 'Plan together in real time: tours, budgets, journals and a photo book, with help from AI.',
'native.welcome.connect': 'Connect your TREK',
'native.welcome.connectSub': 'Open the address you already use',
'native.welcome.getCloud': 'Get TREK Cloud',
'native.welcome.getCloudSub': 'Hosted for you, no setup',
'native.cloud.title': 'TREK Cloud',
'native.cloud.sub':
'We host TREK for you, on your own address. Nothing to install, nothing to maintain, and it is ready in minutes.',
'native.cloud.f1': 'Your own address, on servers in Germany',
'native.cloud.f2': 'Set up in minutes, updates handled for you',
'native.cloud.f3': 'Your data stays yours: no ads, no tracking',
'native.cloud.cta': 'Get started',
'native.cloud.haveServer': 'I already have a TREK',
'native.connecting': 'Connecting to {host}',
'native.back': 'Back',
'native.plans.title': 'Choose your plan',
'native.plans.sub': 'Hosted TREK on your own address. Change or cancel anytime.',
'native.plans.monthly': 'Monthly',
'native.plans.yearly': 'Yearly',
'native.plans.perMonth': 'per month',
'native.plans.perYear': 'per year',
'native.plans.aiDocs': '{n} AI documents a month',
'native.plans.noAi': 'No AI documents',
'native.plans.storage': '{n} GB storage',
'native.plans.unlimited': 'Unlimited places, trips & people',
'native.plans.subscribe': 'Subscribe',
'native.plans.loadError': 'Could not load the plans. Check your connection and try again.',
'native.plans.retry': 'Try again',
'native.plans.soon': 'Subscribing in the app is not available yet.',
'native.plans.closed': 'TREK Cloud opens soon. You can subscribe here from opening day.',
'native.claim.title': 'Almost there',
'native.claim.sub': 'Choose your address. We set it up right away.',
'native.claim.addressLabel': 'Your address',
'native.claim.taken': 'That address is taken.',
'native.claim.invalid': 'Three or more letters, numbers and hyphens.',
'native.claim.reserved': 'That address is reserved.',
'native.claim.free': 'Available',
'native.claim.emailLabel': 'Email',
'native.claim.emailHint': 'For your account and messages about your contract.',
'native.claim.passwordLabel': 'Password',
'native.claim.passwordHint':
'At least 8 characters. Password must contain uppercase, lowercase, a number, and a special character.',
'native.claim.subscribe': 'Subscribe for {price}',
'native.claim.cancelled': 'Purchase cancelled.',
'native.claim.failed': 'The purchase did not go through. Please try again.',
'native.claim.redeemFailed': 'We could not set up your TREK. Please try again.',
'native.claim.closedRefund':
'TREK Cloud opens soon. Google Play refunds this purchase automatically within three days.',
'native.plans.restore': 'Restore purchases',
'native.plans.restoring': 'Checking your purchases…',
'native.plans.restoreNone': 'No active subscription found on this Apple ID.',
'native.plans.restoreFailed': 'We could not restore your TREK. Please try again.',
'native.plans.legal':
'Payment is charged to your Apple ID when you confirm. The subscription renews automatically unless you cancel it at least 24 hours before the period ends. Manage or cancel it in your App Store account settings.',
'native.plans.terms': 'Apple terms of use (EULA)',
'native.plans.ourTerms': 'TREK Cloud terms',
'native.plans.legalAndroid':
'Payment is charged to your Google account when you confirm. The subscription renews automatically unless you cancel it before the period ends. Manage or cancel it in Google Play under Profile, Payments and subscriptions, Subscriptions.',
'native.plans.restoreNoneAndroid': 'No active subscription found on this Google account.',
'native.claim.agree':
'By subscribing, the TREK Cloud terms apply to providing your instance (provider: Maurice Bötger, Rostock). The store handles the purchase, payment and refunds.',
'native.claim.pending': 'Your purchase is waiting for approval. Once it goes through, tap Restore purchases.',
'native.provisioning.title': 'Setting up your TREK',
'native.provisioning.sub': 'Getting {host} ready. This only takes a minute.',
'native.provisioning.failedTitle': 'Almost ready',
'native.provisioning.failedSub': 'Your TREK is on its way. Try again in a moment, or open the app later.',
'native.provisioning.retry': 'Try now',
'native.update.title': 'Update the TREK app',
'native.update.body': 'This server needs a newer version of the app for everything to work.',
'native.update.open': 'Update',
'native.lock.title': 'TREK is locked',
'native.lock.unlock': 'Unlock',
'native.lock.reason': 'Unlock TREK',
'native.lock.settingTitle': 'App lock',
'native.lock.setting': 'Lock with Face ID or passcode',
'native.lock.settingHint':
'Asks when TREK opens and after half a minute in the background, and hides the app in the app switcher.',
'native.share.title': 'Import into which trip?',
'native.share.noTrips': 'No trip yet. Create one first, then share the document again.',
'native.share.linkTitle': 'What should TREK do with this link?',
'native.share.saveLink': "Save to the trip's links",
'native.share.saveLinkHint': 'Everyone on the trip finds it under Links',
'native.share.readBooking': 'Read a booking from it',
'native.share.readBookingHint': 'For a confirmation page',
'native.share.linkTrip': 'Save the link to which trip?',
'native.share.linkSaved': 'Link saved',
'native.share.linkUnsupported': 'Turn on Collab to keep links in a trip.',
'native.pushPrompt.title': 'Turn on notifications?',
'native.pushPrompt.body':
"Hear at once when someone writes in a trip's chat, invites you or changes a booking. You can change this any time in the settings.",
'native.pushPrompt.enable': 'Turn on',
'native.pushPrompt.later': 'Not now',
'native.widget.dayOf': 'Day {n} of {m}',
'native.widget.today': 'Today',
'native.widget.noTrip': 'No trip planned yet',
'native.widget.inDays': 'in {n} days',
'native.widget.tomorrow': 'Tomorrow',
'native.widget.nothingPlanned': 'Nothing planned for today',
'native.widget.dayDone': 'All done for today',
'native.widget.noBookings': 'No bookings ahead',
'native.widget.noTodos': 'Nothing left to do',
'native.widget.now': 'Now',
'native.widget.travellers': 'travellers',
'native.widget.missing': 'still to pack',
'native.widget.countries': 'countries',
'native.widget.world': 'of the world',
'native.widget.group': 'Travel group',
'native.widget.poll': 'Poll',
'native.widget.votes': 'votes',
'native.widget.noMessages': 'No messages yet',
'native.widget.departure': 'Departure',
'native.gate.title': '{name} protects this server',
'native.gate.titleUnknown': 'A sign-in page protects this server',
'native.gate.titleBasic': 'A password prompt protects this server',
'native.gate.hint': 'Sign in there once inside the app, as you would in a browser. The app keeps that session.',
'native.gate.signIn': 'Sign in to {name}',
'native.gate.signInGeneric': 'Sign in',
'native.gate.googleNote':
'A sign-in with Google cannot run inside an app. If yours uses it, let TREK through the proxy instead.',
'native.gate.basicHint':
'The app cannot answer this prompt. Let TREK through it in your proxy: TREK still asks for its own login.',
'native.gate.help': 'Using the app behind a sign-in proxy',
'native.cert.title': 'This server asks for a client certificate',
'native.cert.titleRefused': 'The server did not accept the certificate',
'native.cert.hint':
'A proxy in front of it lets in only devices that show a certificate. Add the .p12 or .pfx file made for this device. The app shows it to {host} and nowhere else.',
'native.cert.hintRefused':
'The proxy does not trust the certificate in the app, or no longer does. Choose the file it expects.',
'native.cert.choose': 'Add certificate file',
'native.cert.chooseOther': 'Choose another certificate',
'native.cert.help': 'Using the app with a client certificate',
'native.cert.passwordTitle': 'Certificate password',
'native.cert.passwordMessage': 'Enter the password of the certificate file. The app does not keep it.',
'native.cert.passwordPlaceholder': 'Password',
'native.cert.passwordOk': 'Add',
'native.cert.passwordCancel': 'Cancel',
'native.cert.passwordWrong': 'This password does not open the file. Try again.',
'native.cert.errorFormat':
'The app cannot read this file. It needs a .p12 or .pfx file with the certificate and its private key.',
'native.cert.errorNoKey': 'This file holds no private key. Export the certificate together with its key.',
'native.cert.errorExpired': 'This certificate has expired.',
'native.cert.errorNotYetValid': 'This certificate is not valid yet. Check the date and time on this device.',
'native.cert.errorStore': 'The app could not store the certificate. Try again.',
'native.cert.unreachableTitle': 'Certificate needed',
'native.cert.unreachableHint': '{server} lets in only devices with a client certificate it trusts.',
'native.cert.settingTitle': 'Client certificate',
'native.cert.settingIssuer': 'Issued by {issuer}',
'native.cert.settingServer': 'Server',
'native.cert.settingValidUntil': 'Valid until',
'native.cert.settingHint': 'The app shows this certificate to {host} only, when its proxy asks for it.',
'native.cert.settingReplace': 'Replace',
'native.cert.settingRemove': 'Remove',
'native.cert.removeTitle': 'Remove the certificate?',
'native.cert.removeMessage':
'Without it, the proxy in front of {host} no longer lets the app in until you add one again.',
};
export default native;