The most complete open-source travel planner: real-time collaboration, bookings, budgets, packing lists, journals, offline PWA, SSO and an AI-ready MCP server, with planet-wide place search and routing built in.
TypeScript budget-trackercollaborativedockeritinerarymcp-serveroffline-firstopen-sourceopenstreetmappacking-listpwareal-timeself-hostedselfhostedtraveltravel-apptravel-journaltravel-plannertripitwanderlog
feat(native): buying TREK Cloud in the app asks for the password of the new TREK and opens it signed in
Mauriceb3113e66b999
diff --git a/client/android/app/src/main/java/com/liketrek/trek/TrekServerStore.java b/client/android/app/src/main/java/com/liketrek/trek/TrekServerStore.javaindex f663605e0..d4739608c 100644--- a/client/android/app/src/main/java/com/liketrek/trek/TrekServerStore.java+++ b/client/android/app/src/main/java/com/liketrek/trek/TrekServerStore.java@@ -25,10 +25,33 @@ final class TrekServerStore {private static final String KEY_SIGN_IN_HOSTS = "sign_in_hosts";private static final String KEY_SHELL_ONCE = "shell_once";private static final String KEY_RESTART = "restart";+ private static final String KEY_WELCOME = "welcome";private static final String CONFIG_DIR = "trek-server-config";private TrekServerStore() {}+ /**+ * The one-time code of a TREK Cloud purchase (setServer's `welcome`). The+ * server's first page opens its welcome page with it once, which signs the+ * buyer in (TrekWebViewClient). Kept only until the restart has loaded.+ */+ static void setWelcome(Context context, String code) {+ SharedPreferences.Editor editor = prefs(context).edit();+ if (code == null) editor.remove(KEY_WELCOME);+ else editor.putString(KEY_WELCOME, code);+ editor.commit();+ }++ /** The welcome page for the pending code, handed out once; null when there is none. */+ static String takeWelcomeUrl(Context context) {+ String code = prefs(context).getString(KEY_WELCOME, null);+ String server = getUrl(context);+ if (code == null) return null;+ prefs(context).edit().remove(KEY_WELCOME).commit();+ if (server == null) return null;+ return (server.endsWith("/") ? server : server + "/") + "api/managed/welcome#" + code;+ }+static String getUrl(Context context) {return prefs(context).getString(KEY_URL, null);}diff --git a/client/android/app/src/main/java/com/liketrek/trek/TrekShellPlugin.java b/client/android/app/src/main/java/com/liketrek/trek/TrekShellPlugin.javaindex 9c497b1df..09ce0c8b8 100644--- a/client/android/app/src/main/java/com/liketrek/trek/TrekShellPlugin.java+++ b/client/android/app/src/main/java/com/liketrek/trek/TrekShellPlugin.java@@ -279,6 +279,9 @@ public class TrekShellPlugin extends Plugin {return;}TrekServerStore.setServer(getContext(), url, signInHostsOf(call));+ // A TREK Cloud purchase: the code that signs the buyer in, opened once after the first page.+ String welcome = call.getString("welcome");+ TrekServerStore.setWelcome(getContext(), welcome != null && welcome.matches("[A-Za-z0-9_-]{43}") ? welcome : null);call.resolve();restart();}diff --git a/client/android/app/src/main/java/com/liketrek/trek/TrekWebViewClient.java b/client/android/app/src/main/java/com/liketrek/trek/TrekWebViewClient.javaindex ef5eb285c..de5084bd5 100644--- a/client/android/app/src/main/java/com/liketrek/trek/TrekWebViewClient.java+++ b/client/android/app/src/main/java/com/liketrek/trek/TrekWebViewClient.java@@ -44,6 +44,14 @@ class TrekWebViewClient extends BridgeWebViewClient {return super.shouldOverrideUrlLoading(view, request);}+ /** After the server's first page, a pending welcome code opens the welcome page once (TrekServerStore.takeWelcomeUrl). */+ @Override+ public void onPageFinished(WebView view, String url) {+ super.onPageFinished(view, url);+ String welcome = TrekServerStore.takeWelcomeUrl(view.getContext());+ if (welcome != null) view.loadUrl(welcome);+ }+private boolean isSignInHost(Uri url) {String scheme = url.getScheme();String host = url.getHost();diff --git a/client/ios/App/App/TrekBridgeViewController.swift b/client/ios/App/App/TrekBridgeViewController.swiftindex 16255dcce..88136187a 100644--- a/client/ios/App/App/TrekBridgeViewController.swift+++ b/client/ios/App/App/TrekBridgeViewController.swift@@ -191,6 +191,19 @@ enum TrekServerStore {return false}+ /// The one-time code of a TREK Cloud purchase (setServer's `welcome`). The+ /// server's first page opens its welcome page with it once, which signs the+ /// buyer in (TrekNavigationProxy). Kept in memory only, never on disk.+ static var pendingWelcome: String?++ /// The welcome page for the pending code, handed out once.+ static func takeWelcomeURL() -> URL? {+ guard let code = pendingWelcome, let server = url else { return nil }+ pendingWelcome = nil+ let base = server.hasSuffix("/") ? server : server + "/"+ return URL(string: base + "api/managed/welcome#" + code)+ }+static var offlineCopyURL: URL {let support = FileManager.default.urls(for: .applicationSupportDirectory, in: .userDomainMask)[0]return support.appendingPathComponent("offline-start-page.html")@@ -454,6 +467,15 @@ final class TrekNavigationProxy: NSObject, WKNavigationDelegate {inner.webView?(webView, decidePolicyFor: navigationAction, decisionHandler: decisionHandler)}+ /// After the server's first page, a pending welcome code opens the welcome+ /// page once (TrekServerStore.takeWelcomeURL); it is on the server's origin.+ func webView(_ webView: WKWebView, didFinish navigation: WKNavigation!) {+ inner.webView?(webView, didFinish: navigation)+ if let welcome = TrekServerStore.takeWelcomeURL() {+ webView.load(URLRequest(url: welcome))+ }+ }+func webView(_ webView: WKWebView, didFail navigation: WKNavigation!, withError error: Error) {if Self.isReplaced(error) { return }inner.webView?(webView, didFail: navigation, withError: error)diff --git a/client/ios/App/App/TrekShellPlugin.swift b/client/ios/App/App/TrekShellPlugin.swiftindex 79e119df7..bf664eafe 100644--- a/client/ios/App/App/TrekShellPlugin.swift+++ b/client/ios/App/App/TrekShellPlugin.swift@@ -327,6 +327,9 @@ public class TrekShellPlugin: CAPPlugin, CAPBridgedPlugin, ASWebAuthenticationPr// After the URL: setting it clears the hosts of the server before.let hosts = (call.getArray("signInHosts", String.self) ?? []).filter { $0.range(of: "^[A-Za-z0-9.-]+(:[0-9]+)?$", options: .regularExpression) != nil }TrekServerStore.signInHosts = Set(hosts.map { $0.lowercased() })+ // A TREK Cloud purchase: the code that signs the buyer in, opened once after the first page.+ let welcome = call.getString("welcome") ?? ""+ TrekServerStore.pendingWelcome = welcome.range(of: "^[A-Za-z0-9_-]{43}$", options: .regularExpression) != nil ? welcome : nilcall.resolve()restartBridge()}diff --git a/client/native-shell/main.ts b/client/native-shell/main.tsindex 6cae5b9e5..7e7d8e112 100644--- a/client/native-shell/main.ts+++ b/client/native-shell/main.ts@@ -18,6 +18,7 @@ import {STORE_TERMS_URL,} from '../src/native/links';import { probeDemo, probeServer, type ProbeFailure, type ProbeGet } from '../src/native/serverAddress';+import { passwordProblem } from '../../shared/src/auth/password-policy';import { TrekShell } from '../src/native/trekShell';import { directionOf, pickLocale, translator } from './i18n';import './shell.css';@@ -709,10 +710,12 @@ interface RedeemResult {ok: boolean;/** Set when ok: the address the app loads. */instanceUrl?: string;+ /** Set when ok and a password was chosen: the one-time code that signs the buyer in once the instance answers. */+ welcome?: string;/** Set when not ok: a stable refusal code. */code?: string;}-async function redeemPurchase(slug: string, email: string, purchase: Purchase): Promise<RedeemResult> {+async function redeemPurchase(slug: string, email: string, purchase: Purchase, password = ''): Promise<RedeemResult> {try {const res = await CapacitorHttp.post({url: `${CLOUD_URL}/api/iap/redeem`,@@ -726,13 +729,16 @@ async function redeemPurchase(slug: string, email: string, purchase: Purchase):receipt: purchase.receipt,slug,email,+ // Hashed by the control plane on arrival and set on the new instance; empty for a restore.+ ...(password ? { password } : {}),locale,},});const data = typeof res.data === 'string' ? JSON.parse(res.data) : res.data;- const body = (data ?? {}) as { instanceUrl?: string; code?: string };+ const body = (data ?? {}) as { instanceUrl?: string; code?: string; welcome?: string };if ((res.status === 200 || res.status === 201) && typeof body.instanceUrl === 'string') {- return { ok: true, instanceUrl: body.instanceUrl };+ const welcome = typeof body.welcome === 'string' && /^[A-Za-z0-9_-]{43}$/.test(body.welcome) ? body.welcome : undefined;+ return { ok: true, instanceUrl: body.instanceUrl, ...(welcome ? { welcome } : {}) };}return { ok: false, code: body.code ?? 'redeem-failed' };} catch {@@ -779,12 +785,29 @@ function showClaim(});emailInput.setAttribute('inputmode', 'email');emailInput.setAttribute('autocomplete', 'email');- emailInput.setAttribute('enterkeyhint', 'go');+ emailInput.setAttribute('enterkeyhint', 'next');emailInput.setAttribute('aria-label', t('native.claim.emailLabel'));emailInput.dir = 'ltr';emailInput.classList.add('ltr-value');const emailField = el('div', { className: 'field' }, emailInput);+ // The password for the new TREK, chosen here so the buyer lands signed in (no password by mail).+ const passwordInput = el('input', {+ type: 'password',+ value: '',+ autocapitalize: 'off',+ spellcheck: false,+ placeholder: t('native.claim.passwordLabel'),+ });+ passwordInput.setAttribute('autocomplete', 'new-password');+ passwordInput.setAttribute('enterkeyhint', 'go');+ passwordInput.setAttribute('maxlength', '128');+ passwordInput.setAttribute('aria-label', t('native.claim.passwordLabel'));+ passwordInput.dir = 'ltr';+ passwordInput.classList.add('ltr-value');+ const passwordField = el('div', { className: 'field' }, passwordInput);+ const passwordHint = el('p', { className: 'hint' }, t('native.claim.passwordHint'));+const submit = el('button', { type: 'submit', className: 'btn' }, t('native.claim.subscribe', { price }));const error = el('p', { className: 'error', role: 'alert' });const form = el(@@ -794,6 +817,8 @@ function showClaim(slugNote,emailField,el('p', { className: 'hint' }, t('native.claim.emailHint')),+ passwordField,+ passwordHint,// Our terms govern the instance (terms § 5a): named before the purchase, not only in the confirmation mail.el('p',@@ -852,11 +877,21 @@ function showClaim(emailInput.focus();return;}+ // Before anything is bought: a password TREK would refuse must not cost a purchase first.+ const password = passwordInput.value;+ if (passwordProblem(password) || password.length > 128) {+ shake(passwordField);+ passwordHint.className = 'hint bad';+ passwordInput.focus();+ return;+ }+ passwordHint.className = 'hint';void tap(ImpactStyle.Medium);const lock = (on: boolean) => {slugInput.disabled = on;emailInput.disabled = on;+ passwordInput.disabled = on;submit.disabled = on;};lock(true);@@ -887,10 +922,10 @@ function showClaim(bought = outcome.purchase;}- const redeemed = await redeemPurchase(slug, email, bought);+ const redeemed = await redeemPurchase(slug, email, bought, password);if (redeemed.ok && redeemed.instanceUrl) {await iap.finish(bought);- showProvisioning(redeemed.instanceUrl);+ showProvisioning(redeemed.instanceUrl, redeemed.welcome);return;}void notify(NotificationType.Error);@@ -899,6 +934,10 @@ function showClaim(shake(slugField);slugNote.textContent = t('native.claim.taken');slugNote.className = 'hint bad';+ } else if (redeemed.code === 'password-weak') {+ // A common password the list on the server knows: the purchase waits, unredeemed, for a better one.+ shake(passwordField);+ passwordHint.className = 'hint bad';} else {error.textContent = refundedBeforeOpening(redeemed.code, onPlay)? t('native.claim.closedRefund')@@ -925,7 +964,7 @@ function showClaim(}/** The build runs on the server; the app waits on the new address and loads it the moment it answers. */-function showProvisioning(instanceUrl: string): void {+function showProvisioning(instanceUrl: string, welcome?: string): void {const host = (() => {try {return new URL(instanceUrl).host;@@ -949,11 +988,11 @@ function showProvisioning(instanceUrl: string): void {const poll = async (): Promise<void> => {const result = await probeServer(instanceUrl, get);if (result.ok) {- await connected(result.url);+ await connected(result.url, [], welcome);return;}if (Date.now() > deadline) {- showProvisioningSlow(instanceUrl);+ showProvisioningSlow(instanceUrl, welcome);return;}setTimeout(() => void poll(), 4000);@@ -961,12 +1000,12 @@ function showProvisioning(instanceUrl: string): void {setTimeout(() => void poll(), 3000);}-function showProvisioningSlow(instanceUrl: string): void {+function showProvisioningSlow(instanceUrl: string, welcome?: string): void {void notify(NotificationType.Warning);const retry = el('button', { type: 'button', className: 'btn' }, t('native.provisioning.retry'));retry.addEventListener('click', () => {void tap();- showProvisioning(instanceUrl);+ showProvisioning(instanceUrl, welcome);});show(el(@@ -997,8 +1036,13 @@ async function runDemo(button: HTMLButtonElement, error?: HTMLElement): Promise<}}-/** The tick, then the server takes over. A beat so the success registers. */-async function connected(url: string, signInHosts: string[] = []): Promise<void> {+/**+ * The tick, then the server takes over. A beat so the success registers. With a+ * welcome code (a purchase with a chosen password) the app opens the instance's+ * welcome page once, which signs the buyer in; an app build without that option+ * opens the sign-in page instead, where the chosen password works.+ */+async function connected(url: string, signInHosts: string[] = [], welcome?: string): Promise<void> {void notify(NotificationType.Success);const host = (() => {try {@@ -1023,7 +1067,11 @@ async function connected(url: string, signInHosts: string[] = []): Promise<void>el('div', { className: 'success' }, tick, el('h1', { className: 'title-sm' }, t('native.connecting', { host }))));await new Promise((r) => setTimeout(r, 700));- await TrekShell.setServer(signInHosts.length ? { url, signInHosts } : { url });+ await TrekShell.setServer({+ url,+ ...(signInHosts.length ? { signInHosts } : {}),+ ...(welcome ? { welcome } : {}),+ });}function showUnreachable(server: string): void {diff --git a/client/src/native/trekShell.ts b/client/src/native/trekShell.tsindex 50aeef8f4..07da4b9fb 100644--- a/client/src/native/trekShell.ts+++ b/client/src/native/trekShell.ts@@ -18,8 +18,11 @@ export interface TrekShellPlugin {* Remembers the server and loads it. The current page is gone afterwards.* `signInHosts` are the hosts of a proxy's sign-in page in front of it* (authGate.ts): only they may load in the web view besides the server.+ * `welcome` is the one-time code of a TREK Cloud purchase: the first load+ * opens the server's welcome page with it, which signs the buyer in. A build+ * without this option ignores it and opens the server as usual.*/- setServer(options: { url: string; signInHosts?: string[] }): Promise<void>;+ setServer(options: { url: string; signInHosts?: string[]; welcome?: string }): Promise<void>;/** Forgets the server and returns to the address screen. */resetServer(): Promise<void>;/** Loads the remembered server again, after it could not be reached. */diff --git a/shared/src/i18n/ar/native.ts b/shared/src/i18n/ar/native.tsindex a5570d3f5..8fb027a98 100644--- a/shared/src/i18n/ar/native.ts+++ b/shared/src/i18n/ar/native.ts@@ -63,6 +63,8 @@ const native: TranslationStrings = {'native.claim.free': 'متاح','native.claim.emailLabel': 'البريد الإلكتروني','native.claim.emailHint': 'لحسابك والرسائل المتعلقة بعقدك.',+ 'native.claim.passwordLabel': 'كلمة المرور',+ 'native.claim.passwordHint': '8 أحرف على الأقل. يجب أن تحتوي كلمة المرور على حرف كبير وحرف صغير ورقم ورمز خاص.','native.claim.subscribe': 'اشترك مقابل {price}','native.claim.cancelled': 'تم إلغاء الشراء.','native.claim.failed': 'لم تتم عملية الشراء. حاول مرة أخرى.',diff --git a/shared/src/i18n/az/native.ts b/shared/src/i18n/az/native.tsindex 8e02eeef7..cc9053200 100644--- a/shared/src/i18n/az/native.ts+++ b/shared/src/i18n/az/native.ts@@ -65,6 +65,8 @@ const native: TranslationStrings = {'native.claim.free': 'Əlçatandır','native.claim.emailLabel': 'E-poçt','native.claim.emailHint': 'Hesabınız və müqavilənizlə bağlı bildirişlər üçün.',+ 'native.claim.passwordLabel': 'Parol',+ 'native.claim.passwordHint': 'Ən azı 8 simvol. Parolda böyük hərf, kiçik hərf, rəqəm və xüsusi simvol olmalıdır.','native.claim.subscribe': '{price} qarşılığında abunə ol','native.claim.cancelled': 'Alış ləğv edildi.','native.claim.failed': 'Alış baş tutmadı. Zəhmət olmasa yenidən cəhd edin.',diff --git a/shared/src/i18n/br/native.ts b/shared/src/i18n/br/native.tsindex f42394c96..723541387 100644--- a/shared/src/i18n/br/native.ts+++ b/shared/src/i18n/br/native.ts@@ -64,6 +64,9 @@ const native: TranslationStrings = {'native.claim.free': 'Disponível','native.claim.emailLabel': 'E-mail','native.claim.emailHint': 'Para sua conta e avisos sobre seu contrato.',+ 'native.claim.passwordLabel': 'Senha',+ 'native.claim.passwordHint':+ 'Pelo menos 8 caracteres. A senha deve ter maiúscula, minúscula, número e um caractere especial.','native.claim.subscribe': 'Assinar por {price}','native.claim.cancelled': 'Compra cancelada.','native.claim.failed': 'A compra não foi concluída. Tente novamente.',diff --git a/shared/src/i18n/ca/native.ts b/shared/src/i18n/ca/native.tsindex af2107b2d..bdb1e1cb4 100644--- a/shared/src/i18n/ca/native.ts+++ b/shared/src/i18n/ca/native.ts@@ -65,6 +65,9 @@ const native: TranslationStrings = {'native.claim.free': 'Disponible','native.claim.emailLabel': 'Correu','native.claim.emailHint': 'Per al teu compte i els avisos sobre el teu contracte.',+ 'native.claim.passwordLabel': 'Contrasenya',+ 'native.claim.passwordHint':+ 'Almenys 8 caràcters. La contrasenya ha de contenir majúscules, minúscules, números i un caràcter especial.','native.claim.subscribe': 'Subscriu-te per {price}','native.claim.cancelled': 'Compra cancel·lada.','native.claim.failed': 'La compra no s’ha completat. Torna-ho a provar.',diff --git a/shared/src/i18n/cs/native.ts b/shared/src/i18n/cs/native.tsindex e1b12406a..fce34b02e 100644--- a/shared/src/i18n/cs/native.ts+++ b/shared/src/i18n/cs/native.ts@@ -64,6 +64,8 @@ const native: TranslationStrings = {'native.claim.free': 'Dostupné','native.claim.emailLabel': 'E-mail','native.claim.emailHint': 'Pro váš účet a zprávy ke smlouvě.',+ 'native.claim.passwordLabel': 'Heslo',+ 'native.claim.passwordHint': 'Alespoň 8 znaků. Heslo musí obsahovat velké a malé písmeno, číslici a speciální znak.','native.claim.subscribe': 'Předplatit za {price}','native.claim.cancelled': 'Nákup zrušen.','native.claim.failed': 'Nákup se nezdařil. Zkuste to znovu.',diff --git a/shared/src/i18n/de/native.ts b/shared/src/i18n/de/native.tsindex e5f0e8af4..c96a67101 100644--- a/shared/src/i18n/de/native.ts+++ b/shared/src/i18n/de/native.ts@@ -65,6 +65,9 @@ const native: TranslationStrings = {'native.claim.free': 'Verfügbar','native.claim.emailLabel': 'E-Mail','native.claim.emailHint': 'Für dein Konto und Mitteilungen zu deinem Vertrag.',+ 'native.claim.passwordLabel': 'Passwort',+ 'native.claim.passwordHint':+ 'Mindestens 8 Zeichen. Passwort muss Groß-, Kleinbuchstaben, eine Zahl und ein Sonderzeichen enthalten.','native.claim.subscribe': 'Abonnieren für {price}','native.claim.cancelled': 'Kauf abgebrochen.','native.claim.failed': 'Der Kauf hat nicht geklappt. Bitte versuch es erneut.',diff --git a/shared/src/i18n/en/native.ts b/shared/src/i18n/en/native.tsindex a2f8418de..76955055e 100644--- a/shared/src/i18n/en/native.ts+++ b/shared/src/i18n/en/native.ts@@ -64,6 +64,9 @@ const native: TranslationStrings = {'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.',diff --git a/shared/src/i18n/es/native.ts b/shared/src/i18n/es/native.tsindex fc4e63860..6946c41f5 100644--- a/shared/src/i18n/es/native.ts+++ b/shared/src/i18n/es/native.ts@@ -66,6 +66,9 @@ const native: TranslationStrings = {'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.',diff --git a/shared/src/i18n/et/native.ts b/shared/src/i18n/et/native.tsindex 63e0f5549..73ebb21fa 100644--- a/shared/src/i18n/et/native.ts+++ b/shared/src/i18n/et/native.ts@@ -64,6 +64,8 @@ const native: TranslationStrings = {'native.claim.free': 'Saadaval','native.claim.emailLabel': 'E-post','native.claim.emailHint': 'Sinu konto ja lepinguga seotud teadete jaoks.',+ 'native.claim.passwordLabel': 'Parool',+ 'native.claim.passwordHint': 'Vähemalt 8 märki. Parool peab sisaldama suur- ja väiketähte, numbrit ning erimärki.','native.claim.subscribe': 'Telli hinnaga {price}','native.claim.cancelled': 'Ost tühistatud.','native.claim.failed': 'Ost ei õnnestunud. Proovi uuesti.',diff --git a/shared/src/i18n/fr/native.ts b/shared/src/i18n/fr/native.tsindex 882be6cf2..e50be097b 100644--- a/shared/src/i18n/fr/native.ts+++ b/shared/src/i18n/fr/native.ts@@ -66,6 +66,9 @@ const native: TranslationStrings = {'native.claim.free': 'Disponible','native.claim.emailLabel': 'E-mail','native.claim.emailHint': 'Pour votre compte et les messages concernant votre contrat.',+ 'native.claim.passwordLabel': 'Mot de passe',+ 'native.claim.passwordHint':+ 'Au moins 8 caractères. Le mot de passe doit contenir des majuscules, des minuscules, un chiffre et un caractère spécial.','native.claim.subscribe': 'S’abonner pour {price}','native.claim.cancelled': 'Achat annulé.','native.claim.failed': 'L’achat n’a pas abouti. Réessayez.',diff --git a/shared/src/i18n/gr/native.ts b/shared/src/i18n/gr/native.tsindex 72138de56..527e21541 100644--- a/shared/src/i18n/gr/native.ts+++ b/shared/src/i18n/gr/native.ts@@ -67,6 +67,9 @@ const native: TranslationStrings = {'native.claim.free': 'Διαθέσιμη','native.claim.emailLabel': 'Ηλ. ταχυδρομείο','native.claim.emailHint': 'Για τον λογαριασμό σας και ενημερώσεις για τη σύμβασή σας.',+ 'native.claim.passwordLabel': 'Κωδικός',+ 'native.claim.passwordHint':+ 'Τουλάχιστον 8 χαρακτήρες. Ο κωδικός πρέπει να περιέχει κεφαλαία, πεζά, έναν αριθμό και έναν ειδικό χαρακτήρα.','native.claim.subscribe': 'Εγγραφή για {price}','native.claim.cancelled': 'Η αγορά ακυρώθηκε.','native.claim.failed': 'Η αγορά δεν ολοκληρώθηκε. Δοκιμάστε ξανά.',diff --git a/shared/src/i18n/he/native.ts b/shared/src/i18n/he/native.tsindex 13e45f413..da040f309 100644--- a/shared/src/i18n/he/native.ts+++ b/shared/src/i18n/he/native.ts@@ -63,6 +63,8 @@ const native: TranslationStrings = {'native.claim.free': 'זמין','native.claim.emailLabel': 'אימייל','native.claim.emailHint': 'לחשבון שלכם ולהודעות על החוזה.',+ 'native.claim.passwordLabel': 'סיסמה',+ 'native.claim.passwordHint': 'לפחות 8 תווים. הסיסמה חייבת להכיל אות גדולה, אות קטנה, ספרה ותו מיוחד.','native.claim.subscribe': 'הרשמה תמורת {price}','native.claim.cancelled': 'הרכישה בוטלה.','native.claim.failed': 'הרכישה לא הושלמה. אנא נסו שוב.',diff --git a/shared/src/i18n/hu/native.ts b/shared/src/i18n/hu/native.tsindex 166de8e32..9a4ed09f0 100644--- a/shared/src/i18n/hu/native.ts+++ b/shared/src/i18n/hu/native.ts@@ -65,6 +65,9 @@ const native: TranslationStrings = {'native.claim.free': 'Szabad','native.claim.emailLabel': 'E-mail','native.claim.emailHint': 'A fiókodhoz és a szerződéssel kapcsolatos üzenetekhez.',+ 'native.claim.passwordLabel': 'Jelszó',+ 'native.claim.passwordHint':+ 'Legalább 8 karakter. A jelszónak tartalmaznia kell nagybetűt, kisbetűt, számot és speciális karaktert.','native.claim.subscribe': 'Előfizetés ennyiért: {price}','native.claim.cancelled': 'Vásárlás megszakítva.','native.claim.failed': 'A vásárlás nem sikerült. Próbáld újra.',diff --git a/shared/src/i18n/id/native.ts b/shared/src/i18n/id/native.tsindex a46be342e..555fe69d5 100644--- a/shared/src/i18n/id/native.ts+++ b/shared/src/i18n/id/native.ts@@ -64,6 +64,9 @@ const native: TranslationStrings = {'native.claim.free': 'Tersedia','native.claim.emailLabel': 'Email', // same-as-en'native.claim.emailHint': 'Untuk akun Anda dan pemberitahuan tentang kontrak Anda.',+ 'native.claim.passwordLabel': 'Kata sandi',+ 'native.claim.passwordHint':+ 'Minimal 8 karakter. Kata sandi harus mengandung huruf besar, huruf kecil, angka, dan karakter khusus.','native.claim.subscribe': 'Berlangganan seharga {price}','native.claim.cancelled': 'Pembelian dibatalkan.','native.claim.failed': 'Pembelian tidak berhasil. Silakan coba lagi.',diff --git a/shared/src/i18n/it/native.ts b/shared/src/i18n/it/native.tsindex 9948a706b..7c8bc9fb7 100644--- a/shared/src/i18n/it/native.ts+++ b/shared/src/i18n/it/native.ts@@ -65,6 +65,9 @@ const native: TranslationStrings = {'native.claim.free': 'Disponibile','native.claim.emailLabel': 'Email', // same-as-en'native.claim.emailHint': 'Per il tuo account e le comunicazioni sul contratto.',+ 'native.claim.passwordLabel': 'La tua password',+ 'native.claim.passwordHint':+ 'Almeno 8 caratteri. La password deve contenere lettere maiuscole, minuscole, un numero e un carattere speciale.','native.claim.subscribe': 'Abbonati per {price}','native.claim.cancelled': 'Acquisto annullato.','native.claim.failed': 'L’acquisto non è andato a buon fine. Riprova.',diff --git a/shared/src/i18n/ja/native.ts b/shared/src/i18n/ja/native.tsindex 2d8d294c5..17cc6f677 100644--- a/shared/src/i18n/ja/native.ts+++ b/shared/src/i18n/ja/native.ts@@ -64,6 +64,8 @@ const native: TranslationStrings = {'native.claim.free': '利用可能','native.claim.emailLabel': 'メール','native.claim.emailHint': 'アカウントと契約に関するお知らせ用です。',+ 'native.claim.passwordLabel': 'パスワード',+ 'native.claim.passwordHint': '8文字以上。大文字・小文字・数字・記号を含めてください。','native.claim.subscribe': '{price} で登録','native.claim.cancelled': '購入をキャンセルしました。','native.claim.failed': '購入できませんでした。もう一度お試しください。',diff --git a/shared/src/i18n/ko/native.ts b/shared/src/i18n/ko/native.tsindex 26077861c..cae3fd11f 100644--- a/shared/src/i18n/ko/native.ts+++ b/shared/src/i18n/ko/native.ts@@ -63,6 +63,8 @@ const native: TranslationStrings = {'native.claim.free': '사용 가능','native.claim.emailLabel': '이메일','native.claim.emailHint': '계정과 계약 관련 안내에 사용됩니다.',+ 'native.claim.passwordLabel': '비밀번호',+ 'native.claim.passwordHint': '8자 이상. 비밀번호는 대문자, 소문자, 숫자, 특수문자를 포함해야 합니다.','native.claim.subscribe': '{price}에 구독','native.claim.cancelled': '구매가 취소되었습니다.','native.claim.failed': '구매가 완료되지 않았습니다. 다시 시도하세요.',diff --git a/shared/src/i18n/nl/native.ts b/shared/src/i18n/nl/native.tsindex 29081cdae..c62f1c402 100644--- a/shared/src/i18n/nl/native.ts+++ b/shared/src/i18n/nl/native.ts@@ -64,6 +64,9 @@ const native: TranslationStrings = {'native.claim.free': 'Beschikbaar','native.claim.emailLabel': 'E-mail','native.claim.emailHint': 'Voor je account en berichten over je contract.',+ 'native.claim.passwordLabel': 'Wachtwoord',+ 'native.claim.passwordHint':+ 'Minstens 8 tekens. Wachtwoord moet hoofdletters, kleine letters, een cijfer en een speciaal teken bevatten.','native.claim.subscribe': 'Abonneren voor {price}','native.claim.cancelled': 'Aankoop geannuleerd.','native.claim.failed': 'De aankoop is niet gelukt. Probeer het opnieuw.',diff --git a/shared/src/i18n/pl/native.ts b/shared/src/i18n/pl/native.tsindex f02e79ccd..80c55ad37 100644--- a/shared/src/i18n/pl/native.ts+++ b/shared/src/i18n/pl/native.ts@@ -64,6 +64,9 @@ const native: TranslationStrings = {'native.claim.free': 'Dostępny','native.claim.emailLabel': 'E-mail','native.claim.emailHint': 'Do konta i wiadomości dotyczących umowy.',+ 'native.claim.passwordLabel': 'Hasło',+ 'native.claim.passwordHint':+ 'Co najmniej 8 znaków. Hasło musi zawierać wielką literę, małą literę, cyfrę i znak specjalny.','native.claim.subscribe': 'Subskrybuj za {price}','native.claim.cancelled': 'Zakup anulowany.','native.claim.failed': 'Zakup się nie powiódł. Spróbuj ponownie.',diff --git a/shared/src/i18n/ru/native.ts b/shared/src/i18n/ru/native.tsindex 75b9e7b5e..7dcfa41a2 100644--- a/shared/src/i18n/ru/native.ts+++ b/shared/src/i18n/ru/native.ts@@ -64,6 +64,9 @@ const native: TranslationStrings = {'native.claim.free': 'Доступно','native.claim.emailLabel': 'Эл. почта','native.claim.emailHint': 'Для вашей учётной записи и сообщений о договоре.',+ 'native.claim.passwordLabel': 'Пароль',+ 'native.claim.passwordHint':+ 'Не менее 8 символов. Пароль должен содержать заглавные, строчные буквы, цифру и специальный символ.','native.claim.subscribe': 'Подписаться за {price}','native.claim.cancelled': 'Покупка отменена.','native.claim.failed': 'Покупка не прошла. Повторите попытку.',diff --git a/shared/src/i18n/sk/native.ts b/shared/src/i18n/sk/native.tsindex d4597c9af..76af12652 100644--- a/shared/src/i18n/sk/native.ts+++ b/shared/src/i18n/sk/native.ts@@ -64,6 +64,9 @@ const native: TranslationStrings = {'native.claim.free': 'Dostupné','native.claim.emailLabel': 'E-mail','native.claim.emailHint': 'Pre váš účet a správy k zmluve.',+ 'native.claim.passwordLabel': 'Heslo',+ 'native.claim.passwordHint':+ 'Aspoň 8 znakov. Heslo musí obsahovať veľké písmeno, malé písmeno, číslicu a špeciálny znak.','native.claim.subscribe': 'Predplatiť za {price}','native.claim.cancelled': 'Nákup zrušený.','native.claim.failed': 'Nákup sa nepodaril. Skúste to znova.',diff --git a/shared/src/i18n/sv/native.ts b/shared/src/i18n/sv/native.tsindex 76b10ef76..b32791092 100644--- a/shared/src/i18n/sv/native.ts+++ b/shared/src/i18n/sv/native.ts@@ -65,6 +65,9 @@ const native: TranslationStrings = {'native.claim.free': 'Ledig','native.claim.emailLabel': 'E-post','native.claim.emailHint': 'För ditt konto och meddelanden om ditt avtal.',+ 'native.claim.passwordLabel': 'Lösenord',+ 'native.claim.passwordHint':+ 'Minst 8 tecken. Lösenordet måste innehålla versaler, gemener, en siffra och ett specialtecken.','native.claim.subscribe': 'Prenumerera för {price}','native.claim.cancelled': 'Köpet avbröts.','native.claim.failed': 'Köpet gick inte igenom. Försök igen.',diff --git a/shared/src/i18n/th/native.ts b/shared/src/i18n/th/native.tsindex 35ad58503..803becc9a 100644--- a/shared/src/i18n/th/native.ts+++ b/shared/src/i18n/th/native.ts@@ -63,6 +63,8 @@ const native: TranslationStrings = {'native.claim.free': 'ว่าง','native.claim.emailLabel': 'อีเมล','native.claim.emailHint': 'สำหรับบัญชีของคุณและการแจ้งเกี่ยวกับสัญญา',+ 'native.claim.passwordLabel': 'รหัสผ่าน',+ 'native.claim.passwordHint': 'อย่างน้อย 8 ตัวอักษร รหัสผ่านจะต้องมีตัวพิมพ์ใหญ่ ตัวพิมพ์เล็ก ตัวเลข และอักขระพิเศษ','native.claim.subscribe': 'สมัครสมาชิกในราคา {price}','native.claim.cancelled': 'ยกเลิกการซื้อแล้ว','native.claim.failed': 'การซื้อไม่สำเร็จ โปรดลองอีกครั้ง',diff --git a/shared/src/i18n/tr/native.ts b/shared/src/i18n/tr/native.tsindex 5928dbaea..05468d965 100644--- a/shared/src/i18n/tr/native.ts+++ b/shared/src/i18n/tr/native.ts@@ -65,6 +65,8 @@ const native: TranslationStrings = {'native.claim.free': 'Uygun','native.claim.emailLabel': 'E-posta','native.claim.emailHint': 'Hesabınız ve sözleşmenizle ilgili bildirimler için.',+ 'native.claim.passwordLabel': 'Şifre',+ 'native.claim.passwordHint': 'En az 8 karakter. Şifre büyük harf, küçük harf, sayı ve özel karakter içermelidir.','native.claim.subscribe': '{price} karşılığında abone ol','native.claim.cancelled': 'Satın alma iptal edildi.','native.claim.failed': 'Satın alma tamamlanamadı. Lütfen tekrar deneyin.',diff --git a/shared/src/i18n/uk/native.ts b/shared/src/i18n/uk/native.tsindex 1f5f58921..5e312623f 100644--- a/shared/src/i18n/uk/native.ts+++ b/shared/src/i18n/uk/native.ts@@ -64,6 +64,9 @@ const native: TranslationStrings = {'native.claim.free': 'Доступно','native.claim.emailLabel': 'Ел. пошта','native.claim.emailHint': 'Для вашого облікового запису та повідомлень щодо договору.',+ 'native.claim.passwordLabel': 'Пароль',+ 'native.claim.passwordHint':+ 'Щонайменше 8 символів. Пароль повинен містити великі й малі літери, цифру та спеціальний символ.','native.claim.subscribe': 'Підписатися за {price}','native.claim.cancelled': 'Покупку скасовано.','native.claim.failed': 'Покупка не пройшла. Повторіть спробу.',diff --git a/shared/src/i18n/vi/native.ts b/shared/src/i18n/vi/native.tsindex 06281a26d..ecb1402e3 100644--- a/shared/src/i18n/vi/native.ts+++ b/shared/src/i18n/vi/native.ts@@ -66,6 +66,8 @@ const native: TranslationStrings = {'native.claim.free': 'Có sẵn','native.claim.emailLabel': 'Email', // same-as-en'native.claim.emailHint': 'Dùng cho tài khoản và thông báo về hợp đồng của bạn.',+ 'native.claim.passwordLabel': 'Mật khẩu',+ 'native.claim.passwordHint': 'Ít nhất 8 ký tự. Mật khẩu phải có chữ hoa, chữ thường, số và ký tự đặc biệt.','native.claim.subscribe': 'Đăng ký với giá {price}','native.claim.cancelled': 'Đã hủy mua.','native.claim.failed': 'Giao dịch mua không thành công. Vui lòng thử lại.',diff --git a/shared/src/i18n/zh-TW/native.ts b/shared/src/i18n/zh-TW/native.tsindex 1a95004ef..8cdc4bf3d 100644--- a/shared/src/i18n/zh-TW/native.ts+++ b/shared/src/i18n/zh-TW/native.ts@@ -63,6 +63,8 @@ const native: TranslationStrings = {'native.claim.free': '可用','native.claim.emailLabel': '電子郵件','native.claim.emailHint': '用於你的帳號與合約相關通知。',+ 'native.claim.passwordLabel': '密碼',+ 'native.claim.passwordHint': '至少 8 個字元。密碼必須包含大寫字母、小寫字母、數字和特殊字元。','native.claim.subscribe': '以 {price} 訂閱','native.claim.cancelled': '已取消購買。','native.claim.failed': '購買未成功。請重試。',diff --git a/shared/src/i18n/zh/native.ts b/shared/src/i18n/zh/native.tsindex 347b5e5af..9b8c1b854 100644--- a/shared/src/i18n/zh/native.ts+++ b/shared/src/i18n/zh/native.ts@@ -63,6 +63,8 @@ const native: TranslationStrings = {'native.claim.free': '可用','native.claim.emailLabel': '邮箱','native.claim.emailHint': '用于你的账户和合同相关通知。',+ 'native.claim.passwordLabel': '密码',+ 'native.claim.passwordHint': '至少 8 个字符。密码必须包含大写字母、小写字母、数字和特殊字符。','native.claim.subscribe': '以 {price} 订阅','native.claim.cancelled': '购买已取消。','native.claim.failed': '购买未成功。请重试。',