Skip to content

Send files directly between devices over the internet - no cloud storage, no size limits.

prepare the 2.0 version with fixes

Denis Lupookov87a41553fbfa
diff --git a/apps/desktop/src/renderer/components/Settings/sections/ActiveAccountSection.tsx b/apps/desktop/src/renderer/components/Settings/sections/ActiveAccountSection.tsx
index 5c8bc3a..d8ebea1 100644
--- a/apps/desktop/src/renderer/components/Settings/sections/ActiveAccountSection.tsx
+++ b/apps/desktop/src/renderer/components/Settings/sections/ActiveAccountSection.tsx
@@ -3,7 +3,7 @@ import { AccountCodeCard, Button, LinkRow, Spinner } from '@altersend/components
import { ChevronRightIcon } from '@altersend/components/icons'
import { useTranslation } from '@altersend/locales'
-import { formatAccountCode, useCopiedFlag } from '@altersend/domain'
+import { formatAccountCode, subscriptionSummary, useCopiedFlag } from '@altersend/domain'
import type { AccountModel } from '@altersend/domain'
import { ConfirmDialog } from '../../ConfirmDialog'
import { useToast } from '../../Toast'
@@ -51,17 +51,22 @@ export function ActiveAccountSection({ model }: { model: AccountModel }) {
year: 'numeric'
})
- const planSummary =
- model.subscription.cancelling && model.subscription.endsAt
- ? t('settings:account.endsOn', { date: billingDate(model.subscription.endsAt) })
- : account.validUntil
- ? [
- t('settings:account.untilDate', { date: billingDate(account.validUntil) }),
- model.subscription.canManage ? t('settings:account.manageSubscription') : null
- ]
- .filter(Boolean)
- .join(' · ')
- : t('settings:account.manageSubscription')
+ const { canManage, canCancel, cancelling, endsAt } = model.subscription
+ const canOpen = canManage || canCancel
+
+ const openSubscription = () => {
+ if (canManage) {
+ model.subscription.manage()
+ return
+ }
+ setConfirmCancel(true)
+ }
+
+ const planSummary = subscriptionSummary(
+ { cancelling, endsAt, validUntil: account.validUntil, canOpen },
+ t,
+ billingDate
+ )
const footer = (
<div className='flex items-center justify-end gap-2'>
@@ -101,16 +106,10 @@ export function ActiveAccountSection({ model }: { model: AccountModel }) {
trailing={
<div className='flex items-center gap-2'>
<span className='text-[14px] text-text-muted'>{planSummary}</span>
- {model.subscription.canManage ? <ChevronRightIcon size={14} /> : null}
+ {canOpen ? <ChevronRightIcon size={14} /> : null}
</div>
}
- onPress={
- !model.subscription.canManage
- ? undefined
- : model.subscription.managedByStore
- ? model.subscription.manage
- : () => setConfirmCancel(true)
- }
+ onPress={canOpen ? openSubscription : undefined}
/>
</div>
diff --git a/apps/mobile/app/subscription.tsx b/apps/mobile/app/subscription.tsx
index 1d89dbd..6677d00 100644
--- a/apps/mobile/app/subscription.tsx
+++ b/apps/mobile/app/subscription.tsx
@@ -3,7 +3,7 @@ import { StyleSheet, View } from 'react-native'
import { AccountCodeCard, Button, MenuItem, Spinner, useTheme } from '@altersend/components'
import { LogOutIcon } from '@altersend/components/icons'
import { useTranslation } from '@altersend/locales'
-import { formatAccountCode } from '@altersend/domain'
+import { formatAccountCode, subscriptionSummary } from '@altersend/domain'
import { useRouter } from 'expo-router'
import { ConfirmDialog, Layout } from '@/src/components'
import { useToast } from '@/src/components/Toast'
@@ -72,17 +72,22 @@ export default function SubscriptionScreen() {
day: 'numeric'
})
- const planSummary =
- model.subscription.cancelling && model.subscription.endsAt
- ? t('settings:account.endsOn', { date: billingDate(model.subscription.endsAt) })
- : account.validUntil
- ? [
- t('settings:account.untilDate', { date: billingDate(account.validUntil) }),
- model.subscription.canManage ? t('settings:account.manageSubscription') : null
- ]
- .filter(Boolean)
- .join(' · ')
- : t('settings:account.manageSubscription')
+ const { canManage, canCancel, cancelling, endsAt } = model.subscription
+ const canOpen = canManage || canCancel
+
+ const openSubscription = () => {
+ if (canManage) {
+ model.subscription.manage()
+ return
+ }
+ setConfirmCancel(true)
+ }
+
+ const planSummary = subscriptionSummary(
+ { cancelling, endsAt, validUntil: account.validUntil, canOpen },
+ t,
+ billingDate
+ )
return (
<Layout hasNativeHeader footer={footer}>
@@ -111,16 +116,10 @@ export default function SubscriptionScreen() {
<MenuItem
isLast
label={t('settings:account.subscriptionRow')}
- value={planSummary}
- chevron={model.subscription.canManage}
+ value={planSummary ?? undefined}
+ chevron={canOpen}
disabled={model.busy}
- onPress={
- !model.subscription.canManage
- ? undefined
- : model.subscription.managedByStore
- ? model.subscription.manage
- : () => setConfirmCancel(true)
- }
+ onPress={canOpen ? openSubscription : undefined}
/>
</View>
diff --git a/apps/mobile/eas.json b/apps/mobile/eas.json
index 6202f38..7222be7 100644
--- a/apps/mobile/eas.json
+++ b/apps/mobile/eas.json
@@ -30,7 +30,7 @@
"ios": {
"ascAppId": "6772496271",
"appleTeamId": "XSN9V8JZ75",
- "ascApiKeyPath": "~/.secrets/altersend/apple-asc-api-key.p8",
+ "ascApiKeyPath": "/Users/denislupookov/.secrets/altersend/apple-asc-api-key.p8",
"ascApiKeyId": "V4AH7QA3P7",
"ascApiKeyIssuerId": "65e338f0-c0db-467e-a6c8-744d6e868ad0"
}
diff --git a/apps/mobile/src/account/Paywall.tsx b/apps/mobile/src/account/Paywall.tsx
index 376bc83..010c04d 100644
--- a/apps/mobile/src/account/Paywall.tsx
+++ b/apps/mobile/src/account/Paywall.tsx
@@ -1,5 +1,5 @@
import { useEffect } from 'react'
-import { Linking, StyleSheet, View } from 'react-native'
+import { Linking, Platform, StyleSheet, View } from 'react-native'
import { Button, ExternalLink, LinkRow, useTheme } from '@altersend/components'
import { useTranslation } from '@altersend/locales'
import {
@@ -21,6 +21,9 @@ const PRO_COLUMN_WIDTH = 80
const FREE_CHECK_SIZE = 15
const PRO_CHECK_SIZE = 17
+const RENEWAL_KEY =
+ Platform.OS === 'ios' ? 'settings:account.renewalIos' : 'settings:account.renewalAndroid'
+
function openExternalUrl(url: string) {
Linking.openURL(url).catch((err) => console.warn('[account] could not open url', err))
}
@@ -78,6 +81,8 @@ export function Paywall({ model, errorText, onDismiss }: AccountPhaseProps) {
{t('settings:rows.privacyPolicy')}
</ExternalLink>
</View>
+
+ <Text style={[styles.finePrint, { color: c.colorTextMuted }]}>{t(RENEWAL_KEY)}</Text>
</View>
)
@@ -206,6 +211,7 @@ const styles = StyleSheet.create({
proChipLabel: { fontSize: 13, fontWeight: '600' },
footer: { gap: 10 },
note: { fontSize: 13, lineHeight: 18, textAlign: 'center' },
+ finePrint: { fontSize: 11, lineHeight: 15, textAlign: 'center' },
error: { fontSize: 13, lineHeight: 18, marginTop: 12, textAlign: 'center' },
legalLinks: {
flexDirection: 'row',
diff --git a/apps/mobile/src/transfer/receive/utils/downloadHandlers.ts b/apps/mobile/src/transfer/receive/utils/downloadHandlers.ts
index 453c360..bb5d5e4 100644
--- a/apps/mobile/src/transfer/receive/utils/downloadHandlers.ts
+++ b/apps/mobile/src/transfer/receive/utils/downloadHandlers.ts
@@ -1,6 +1,6 @@
import { Platform } from 'react-native'
import { File } from 'expo-file-system'
-import * as MediaLibrary from 'expo-media-library'
+import { Asset, requestPermissionsAsync } from 'expo-media-library'
import type { SaveDestination } from '@altersend/domain'
import { isMediaStoreAvailable, saveToDownloads } from '@/modules/media-store'
import { isSaveMediaToPhotos } from '@/src/lifecycle/downloadPreferenceStorage'
@@ -107,13 +107,14 @@ export async function handleDownloadedFile(
return saveToFiles(localPath, fileName)
}
- const permission = await MediaLibrary.requestPermissionsAsync(true)
+ const permission = await requestPermissionsAsync(true)
if (!permission.granted) {
return { intended: 'photos', destination: 'filesystem', localPath }
}
try {
- await MediaLibrary.saveToLibraryAsync(toFilePath(localPath))
- } catch {
+ await Asset.create(toFilePath(localPath))
+ } catch (err) {
+ console.warn('handleDownloadedFile: media library save failed', err)
const fallback = await saveToFiles(localPath, fileName)
return { ...fallback, intended: 'photos' }
}
diff --git a/packages/domain/src/account/core/billing.ts b/packages/domain/src/account/core/billing.ts
index 8292a03..df9628c 100644
--- a/packages/domain/src/account/core/billing.ts
+++ b/packages/domain/src/account/core/billing.ts
@@ -1 +1,3 @@
export type BillingPlan = 'monthly' | 'yearly'
+
+export type PaymentProvider = 'stripe' | 'revenuecat'
diff --git a/packages/domain/src/account/core/index.ts b/packages/domain/src/account/core/index.ts
index 2c9f4ad..6b0b15c 100644
--- a/packages/domain/src/account/core/index.ts
+++ b/packages/domain/src/account/core/index.ts
@@ -3,3 +3,4 @@ export * from './code'
export * from './codeFile'
export * from './plans'
export * from './state'
+export * from './summary'
diff --git a/packages/domain/src/account/core/state.ts b/packages/domain/src/account/core/state.ts
index e4ef5c0..a2808c9 100644
--- a/packages/domain/src/account/core/state.ts
+++ b/packages/domain/src/account/core/state.ts
@@ -1,4 +1,4 @@
-import type { BillingPlan } from './billing'
+import type { BillingPlan, PaymentProvider } from './billing'
export type AccountPhase = 'paywall' | 'entering' | 'waiting' | 'approval' | 'success' | 'active'
@@ -30,7 +30,7 @@ export function accountErrorKey(error: AccountError | null): string | null {
export interface AccountState {
code: string
validUntil: string | null
- provider?: 'stripe' | 'revenuecat' | null
+ provider?: PaymentProvider | null
}
export interface AccountSession {
diff --git a/packages/domain/src/account/core/summary.test.ts b/packages/domain/src/account/core/summary.test.ts
new file mode 100644
index 0000000..2922091
--- /dev/null
+++ b/packages/domain/src/account/core/summary.test.ts
@@ -0,0 +1,47 @@
+import { describe, expect, it } from 'vitest'
+import { subscriptionSummary, type SubscriptionSummaryInput } from './summary'
+
+const t = (key: string, values?: Record<string, string | number>) =>
+ values ? `${key}(${values.date})` : key
+
+const formatDate = (value: string) => value.slice(0, 7)
+
+const input = (overrides: Partial<SubscriptionSummaryInput> = {}): SubscriptionSummaryInput => ({
+ cancelling: false,
+ endsAt: null,
+ validUntil: null,
+ canOpen: false,
+ ...overrides
+})
+
+describe('subscriptionSummary', () => {
+ it('prefers the end date over the renewal date while cancelling', () => {
+ const summary = input({ cancelling: true, endsAt: '2030-04-01', validUntil: '2030-05-01' })
+
+ expect(subscriptionSummary(summary, t, formatDate)).toBe('settings:account.endsOn(2030-04)')
+ })
+
+ it('falls back to the renewal date when a cancellation has no end date', () => {
+ const summary = input({ cancelling: true, validUntil: '2030-05-01' })
+
+ expect(subscriptionSummary(summary, t, formatDate)).toBe('settings:account.untilDate(2030-05)')
+ })
+
+ it('appends the manage hint when the row is actionable', () => {
+ const summary = input({ validUntil: '2030-05-01', canOpen: true })
+
+ expect(subscriptionSummary(summary, t, formatDate)).toBe(
+ 'settings:account.untilDate(2030-05) · settings:account.manageSubscription'
+ )
+ })
+
+ it('shows only the manage hint when no dates are known', () => {
+ expect(subscriptionSummary(input({ canOpen: true }), t, formatDate)).toBe(
+ 'settings:account.manageSubscription'
+ )
+ })
+
+ it('returns null when there is nothing to show', () => {
+ expect(subscriptionSummary(input(), t, formatDate)).toBeNull()
+ })
+})
diff --git a/packages/domain/src/account/core/summary.ts b/packages/domain/src/account/core/summary.ts
new file mode 100644
index 0000000..475a394
--- /dev/null
+++ b/packages/domain/src/account/core/summary.ts
@@ -0,0 +1,33 @@
+import type { TranslateFn } from './plans'
+
+export type FormatDateFn = (value: string) => string
+
+export interface SubscriptionSummaryInput {
+ cancelling: boolean
+ endsAt: string | null
+ validUntil: string | null
+ canOpen: boolean
+}
+
+function periodLabel(
+ { cancelling, endsAt, validUntil }: SubscriptionSummaryInput,
+ t: TranslateFn,
+ formatDate: FormatDateFn
+): string | null {
+ if (cancelling && endsAt) return t('settings:account.endsOn', { date: formatDate(endsAt) })
+ if (validUntil) return t('settings:account.untilDate', { date: formatDate(validUntil) })
+ return null
+}
+
+export function subscriptionSummary(
+ input: SubscriptionSummaryInput,
+ t: TranslateFn,
+ formatDate: FormatDateFn
+): string | null {
+ const parts = [
+ periodLabel(input, t, formatDate),
+ input.canOpen ? t('settings:account.manageSubscription') : null
+ ].filter((part): part is string => part !== null)
+
+ return parts.length ? parts.join(' · ') : null
+}
diff --git a/packages/domain/src/account/index.ts b/packages/domain/src/account/index.ts
index 3074a71..e13e658 100644
--- a/packages/domain/src/account/index.ts
+++ b/packages/domain/src/account/index.ts
@@ -8,6 +8,7 @@ export {
planComparisonRows,
planLabel,
planRows,
+ subscriptionSummary,
type AccountPhase,
type BillingPlan,
type PlanCell,
diff --git a/packages/domain/src/account/runtime/useAccount.ts b/packages/domain/src/account/runtime/useAccount.ts
index d367524..41d22d2 100644
--- a/packages/domain/src/account/runtime/useAccount.ts
+++ b/packages/domain/src/account/runtime/useAccount.ts
@@ -10,6 +10,7 @@ import {
type AccountPhase,
type AccountState,
type BillingPlan,
+ type PaymentProvider,
type PlanPrices
} from '../core'
import type { AccountStorage, PurchaseAdapter } from '../ports'
@@ -49,6 +50,21 @@ interface AccountSubscriptionActions {
cancelling: boolean
endsAt: string | null
canManage: boolean
+ canCancel: boolean
+}
+
+interface BillingState {
+ provider: PaymentProvider | null
+ cancelling: boolean
+ endsAt: string | null
+ loaded: boolean
+}
+
+const initialBilling: BillingState = {
+ provider: null,
+ cancelling: false,
+ endsAt: null,
+ loaded: false
}
export interface AccountModel {
@@ -251,8 +267,8 @@ export function useAccount(adapter: AccountAdapter): AccountModel {
}, [context, run])
const store = useMemo<AccountStoreActions | undefined>(
- () => (purchases && !storeUnavailable ? { restore } : undefined),
- [purchases, restore, storeUnavailable]
+ () => (purchases ? { restore } : undefined),
+ [purchases, restore]
)
const retryUpgrade = useCallback(() => {
@@ -308,25 +324,16 @@ export function useAccount(adapter: AccountAdapter): AccountModel {
[client, run, session.entry, storage, syncToken]
)
- const managedByStore = session.account?.provider === 'revenuecat'
- const [billing, setBilling] = useState<{
- cancelling: boolean
- endsAt: string | null
- loaded: boolean
- }>({ cancelling: false, endsAt: null, loaded: false })
+ const [billing, setBilling] = useState<BillingState>(initialBilling)
const activeCode = session.phase === 'active' ? session.account?.code : undefined
const latestCode = useRef(activeCode)
latestCode.current = activeCode
const readBilling = useCallback(async () => {
- setBilling({ cancelling: false, endsAt: null, loaded: false })
+ setBilling(initialBilling)
if (!activeCode) return
- if (managedByStore) {
- setBilling({ cancelling: false, endsAt: null, loaded: true })
- return
- }
const state = await client.subscription(activeCode).catch((err) => {
warn('subscription lookup failed', err)
@@ -336,11 +343,15 @@ export function useAccount(adapter: AccountAdapter): AccountModel {
if (activeCode !== latestCode.current) return
setBilling({
+ provider: state?.provider ?? null,
cancelling: state?.cancelling ?? false,
endsAt: state?.endsAt ?? null,
loaded: state !== null
})
- }, [activeCode, client, managedByStore])
+ }, [activeCode, client])
+
+ const provider = billing.loaded ? billing.provider : (session.account?.provider ?? null)
+ const managedByStore = provider === 'revenuecat'
useEffect(() => {
readBilling()
@@ -385,9 +396,20 @@ export function useAccount(adapter: AccountAdapter): AccountModel {
managedByStore,
cancelling: billing.cancelling,
endsAt: billing.endsAt,
- canManage: billing.loaded && !billing.cancelling
+ canManage: managedByStore && Boolean(purchases),
+ canCancel: provider === 'stripe' && billing.loaded && !billing.cancelling
}),
- [billing.cancelling, billing.endsAt, billing.loaded, cancel, logOut, manage, managedByStore]
+ [
+ billing.cancelling,
+ billing.endsAt,
+ billing.loaded,
+ cancel,
+ logOut,
+ manage,
+ managedByStore,
+ provider,
+ purchases
+ ]
)
const setEntry = useCallback(
diff --git a/packages/domain/src/account/transport/client.ts b/packages/domain/src/account/transport/client.ts
index 404373a..bbd1ea3 100644
--- a/packages/domain/src/account/transport/client.ts
+++ b/packages/domain/src/account/transport/client.ts
@@ -1,4 +1,4 @@
-import type { BillingPlan } from '../core'
+import type { BillingPlan, PaymentProvider } from '../core'
import {
AccountApiError,
NETWORK_ERROR_STATUS,
@@ -14,8 +14,6 @@ interface NewAccount {
active: boolean
}
-type PaymentProvider = 'stripe' | 'revenuecat'
-
export interface AccountStatus {
exists: boolean
active: boolean
@@ -124,10 +122,18 @@ export function createAccountClient(baseUrl: string): AccountClient {
},
async syncStore(code) {
- const result = await post<{ active: boolean; validUntil?: string }>('/api/revenuecat/sync', {
- code
- })
- return { exists: true, active: result.active, validUntil: result.validUntil }
+ const result = await post<{
+ active: boolean
+ validUntil?: string
+ provider?: PaymentProvider | null
+ }>('/api/revenuecat/sync', { code })
+
+ return {
+ exists: true,
+ active: result.active,
+ validUntil: result.validUntil,
+ provider: result.provider
+ }
},
async checkout(code, plan) {
diff --git a/packages/locales/src/locales/de-DE/settings.json b/packages/locales/src/locales/de-DE/settings.json
index 6cb6b63..ca1ead5 100644
--- a/packages/locales/src/locales/de-DE/settings.json
+++ b/packages/locales/src/locales/de-DE/settings.json
@@ -200,7 +200,9 @@
"pricePerYear": "{{price}}/Jahr",
"included": "Enthalten",
"getPro": "Pro holen",
- "storeUnavailable": "In-App-Käufe sind auf diesem Gerät nicht verfügbar. Kaufen Sie AlterSend Pro auf einem anderen Gerät und geben Sie Ihren Code hier ein.",
+ "storeUnavailable": "In-App-Käufe sind auf diesem Gerät nicht verfügbar. Wenn Sie Pro bereits haben, geben Sie Ihren Code ein.",
+ "renewalIos": "Verlängert sich automatisch, bis Sie kündigen. Verwaltung in den App-Store-Einstellungen.",
+ "renewalAndroid": "Verlängert sich automatisch, bis Sie kündigen. Verwaltung in den Google-Play-Einstellungen.",
"none": "–",
"featureDirect": "Direkte P2P-Übertragung",
"featurePriority": "Vorrang, wenn das Relay ausgelastet ist",
diff --git a/packages/locales/src/locales/en-GB/settings.json b/packages/locales/src/locales/en-GB/settings.json
index 5acd5c3..466080a 100644
--- a/packages/locales/src/locales/en-GB/settings.json
+++ b/packages/locales/src/locales/en-GB/settings.json
@@ -200,7 +200,9 @@
"pricePerYear": "{{price}}/yr",
"included": "What's included",
"getPro": "Get Pro",
- "storeUnavailable": "In-app purchase isn't available on this device. Buy AlterSend Pro on another device and enter your code here.",
+ "storeUnavailable": "In-app purchase isn't available on this device. If you already have Pro, enter your code.",
+ "renewalIos": "Renews automatically until cancelled. Manage in App Store settings.",
+ "renewalAndroid": "Renews automatically until cancelled. Manage in Google Play settings.",
"none": "–",
"featureDirect": "Direct P2P transfer",
"featurePriority": "Priority when the relay is busy",
diff --git a/packages/locales/src/locales/en-US/settings.json b/packages/locales/src/locales/en-US/settings.json
index bbd0741..b4f50a9 100644
--- a/packages/locales/src/locales/en-US/settings.json
+++ b/packages/locales/src/locales/en-US/settings.json
@@ -200,7 +200,9 @@
"pricePerYear": "{{price}}/yr",
"included": "What's included",
"getPro": "Get Pro",
- "storeUnavailable": "In-app purchase isn't available on this device. Buy AlterSend Pro on another device and enter your code here.",
+ "storeUnavailable": "In-app purchase isn't available on this device. If you already have Pro, enter your code.",
+ "renewalIos": "Renews automatically until cancelled. Manage in App Store settings.",
+ "renewalAndroid": "Renews automatically until cancelled. Manage in Google Play settings.",
"none": "–",
"featureDirect": "Direct P2P transfer",
"featurePriority": "Priority when the relay is busy",
diff --git a/packages/locales/src/locales/es-419/settings.json b/packages/locales/src/locales/es-419/settings.json
index 7fc547e..0bd29b9 100644
--- a/packages/locales/src/locales/es-419/settings.json
+++ b/packages/locales/src/locales/es-419/settings.json
@@ -200,7 +200,9 @@
"pricePerYear": "{{price}}/año",
"included": "Qué incluye",
"getPro": "Obtener Pro",
- "storeUnavailable": "Las compras dentro de la aplicación no están disponibles en este dispositivo. Compra AlterSend Pro en otro dispositivo e ingresa aquí tu código.",
+ "storeUnavailable": "Las compras dentro de la aplicación no están disponibles en este dispositivo. Si ya tienes Pro, ingresa tu código.",
+ "renewalIos": "Se renueva automáticamente hasta que lo canceles. Adminístralo en la configuración de App Store.",
+ "renewalAndroid": "Se renueva automáticamente hasta que lo canceles. Adminístralo en la configuración de Google Play.",
"none": "–",
"featureDirect": "Transferencia P2P directa",
"featurePriority": "Prioridad cuando el relé está saturado",
diff --git a/packages/locales/src/locales/es-ES/settings.json b/packages/locales/src/locales/es-ES/settings.json
index dfd9ec6..44fa765 100644
--- a/packages/locales/src/locales/es-ES/settings.json
+++ b/packages/locales/src/locales/es-ES/settings.json
@@ -200,7 +200,9 @@
"pricePerYear": "{{price}}/año",
"included": "Qué incluye",
"getPro": "Obtener Pro",
- "storeUnavailable": "Las compras dentro de la aplicación no están disponibles en este dispositivo. Compra AlterSend Pro en otro dispositivo e introduce aquí tu código.",
+ "storeUnavailable": "Las compras dentro de la aplicación no están disponibles en este dispositivo. Si ya tienes Pro, introduce tu código.",
+ "renewalIos": "Se renueva automáticamente hasta que lo canceles. Gestiónalo en los ajustes de App Store.",
+ "renewalAndroid": "Se renueva automáticamente hasta que lo canceles. Gestiónalo en los ajustes de Google Play.",
"none": "–",
"featureDirect": "Transferencia P2P directa",
"featurePriority": "Prioridad cuando el relé está saturado",
diff --git a/packages/locales/src/locales/fr-FR/settings.json b/packages/locales/src/locales/fr-FR/settings.json
index 80b3b1e..af9d196 100644
--- a/packages/locales/src/locales/fr-FR/settings.json
+++ b/packages/locales/src/locales/fr-FR/settings.json
@@ -200,7 +200,9 @@
"pricePerYear": "{{price}}/an",
"included": "Ce qui est inclus",
"getPro": "Obtenir Pro",
- "storeUnavailable": "Les achats intégrés ne sont pas disponibles sur cet appareil. Achetez AlterSend Pro sur un autre appareil, puis saisissez votre code ici.",
+ "storeUnavailable": "Les achats intégrés ne sont pas disponibles sur cet appareil. Si vous avez déjà Pro, saisissez votre code.",
+ "renewalIos": "Renouvellement automatique jusqu'à résiliation. Gérez-le dans les réglages de l'App Store.",
+ "renewalAndroid": "Renouvellement automatique jusqu'à résiliation. Gérez-le dans les paramètres de Google Play.",
"none": "–",
"featureDirect": "Transfert P2P direct",
"featurePriority": "Priorité quand le relais est chargé",
diff --git a/packages/locales/src/locales/it-IT/settings.json b/packages/locales/src/locales/it-IT/settings.json
index 61b2fbc..3e18ae7 100644
--- a/packages/locales/src/locales/it-IT/settings.json
+++ b/packages/locales/src/locales/it-IT/settings.json
@@ -200,7 +200,9 @@
"pricePerYear": "{{price}}/anno",
"included": "Cosa include",
"getPro": "Ottieni Pro",
- "storeUnavailable": "Gli acquisti in-app non sono disponibili su questo dispositivo. Acquista AlterSend Pro su un altro dispositivo e inserisci qui il tuo codice.",
+ "storeUnavailable": "Gli acquisti in-app non sono disponibili su questo dispositivo. Se hai già Pro, inserisci il tuo codice.",
+ "renewalIos": "Si rinnova automaticamente fino alla disdetta. Gestiscilo nelle impostazioni dell'App Store.",
+ "renewalAndroid": "Si rinnova automaticamente fino alla disdetta. Gestiscilo nelle impostazioni di Google Play.",
"none": "–",
"featureDirect": "Trasferimento P2P diretto",
"featurePriority": "Priorità quando il relay è occupato",
diff --git a/packages/locales/src/locales/ja-JP/settings.json b/packages/locales/src/locales/ja-JP/settings.json
index 3e1c288..d2aca3f 100644
--- a/packages/locales/src/locales/ja-JP/settings.json
+++ b/packages/locales/src/locales/ja-JP/settings.json
@@ -200,7 +200,9 @@
"pricePerYear": "{{price}}/年",
"included": "含まれるもの",
"getPro": "Pro を購入",
- "storeUnavailable": "この端末ではアプリ内購入を利用できません。ほかの端末で AlterSend Pro を購入し、コードをここに入力してください。",
+ "storeUnavailable": "この端末ではアプリ内購入を利用できません。すでに Pro をご利用の場合は、コードを入力してください。",
+ "renewalIos": "解約するまで自動更新されます。App Store の設定で管理できます。",
+ "renewalAndroid": "解約するまで自動更新されます。Google Play の設定で管理できます。",
"none": "–",
"featureDirect": "直接 P2P 転送",
"featurePriority": "リレー混雑時の優先処理",
diff --git a/packages/locales/src/locales/ko-KR/settings.json b/packages/locales/src/locales/ko-KR/settings.json
index e423e06..bd32f95 100644
--- a/packages/locales/src/locales/ko-KR/settings.json
+++ b/packages/locales/src/locales/ko-KR/settings.json
@@ -200,7 +200,9 @@
"pricePerYear": "{{price}}/년",
"included": "포함 내용",
"getPro": "Pro 시작하기",
- "storeUnavailable": "이 기기에서는 인앱 구매를 사용할 수 없습니다. 다른 기기에서 AlterSend Pro를 구매한 뒤 코드를 여기에 입력하세요.",
+ "storeUnavailable": "이 기기에서는 인앱 구매를 사용할 수 없습니다. 이미 Pro를 이용 중이라면 코드를 입력하세요.",
+ "renewalIos": "해지할 때까지 자동으로 갱신됩니다. App Store 설정에서 관리할 수 있습니다.",
+ "renewalAndroid": "해지할 때까지 자동으로 갱신됩니다. Google Play 설정에서 관리할 수 있습니다.",
"none": "–",
"featureDirect": "직접 P2P 전송",
"featurePriority": "릴레이가 혼잡할 때 우선 처리",
diff --git a/packages/locales/src/locales/pt-BR/settings.json b/packages/locales/src/locales/pt-BR/settings.json
index 9f2a593..6da2034 100644
--- a/packages/locales/src/locales/pt-BR/settings.json
+++ b/packages/locales/src/locales/pt-BR/settings.json
@@ -200,7 +200,9 @@
"pricePerYear": "{{price}}/ano",
"included": "O que está incluído",
"getPro": "Obter o Pro",
- "storeUnavailable": "As compras no app não estão disponíveis neste dispositivo. Compre o AlterSend Pro em outro dispositivo e insira seu código aqui.",
+ "storeUnavailable": "As compras no app não estão disponíveis neste dispositivo. Se você já tem o Pro, insira seu código.",
+ "renewalIos": "Renova automaticamente até você cancelar. Gerencie nos ajustes da App Store.",
+ "renewalAndroid": "Renova automaticamente até você cancelar. Gerencie nas configurações da Google Play.",
"none": "–",
"featureDirect": "Transferência P2P direta",
"featurePriority": "Prioridade quando o retransmissor está ocupado",
diff --git a/packages/locales/src/locales/ru-RU/settings.json b/packages/locales/src/locales/ru-RU/settings.json
index 472f74c..4f7fbf1 100644
--- a/packages/locales/src/locales/ru-RU/settings.json
+++ b/packages/locales/src/locales/ru-RU/settings.json
@@ -200,7 +200,9 @@
"pricePerYear": "{{price}}/год",
"included": "Что входит",
"getPro": "Получить Pro",
- "storeUnavailable": "Покупки в приложении недоступны на этом устройстве. Оформите AlterSend Pro на другом устройстве и введите код здесь.",
+ "storeUnavailable": "Покупки в приложении недоступны на этом устройстве. Если у вас уже есть Pro, введите код.",
+ "renewalIos": "Продлевается автоматически до отмены. Управление — в настройках App Store.",
+ "renewalAndroid": "Продлевается автоматически до отмены. Управление — в настройках Google Play.",
"none": "–",
"featureDirect": "Прямая P2P-передача",
"featurePriority": "Приоритет, когда ретранслятор загружен",
diff --git a/packages/locales/src/locales/zh-CN/settings.json b/packages/locales/src/locales/zh-CN/settings.json
index 0a073b0..ff58e0f 100644
--- a/packages/locales/src/locales/zh-CN/settings.json
+++ b/packages/locales/src/locales/zh-CN/settings.json
@@ -200,7 +200,9 @@
"pricePerYear": "{{price}}/年",
"included": "包含内容",
"getPro": "获取 Pro",
- "storeUnavailable": "此设备不支持应用内购买。请在其他设备上购买 AlterSend Pro,然后在此输入代码。",
+ "storeUnavailable": "此设备不支持应用内购买。如果您已拥有 Pro,请输入您的代码。",
+ "renewalIos": "订阅会自动续期,直到您取消。可在 App Store 设置中管理。",
+ "renewalAndroid": "订阅会自动续期,直到您取消。可在 Google Play 设置中管理。",
"none": "–",
"featureDirect": "直接 P2P 传输",
"featurePriority": "中继繁忙时优先",
diff --git a/packages/locales/src/locales/zh-TW/settings.json b/packages/locales/src/locales/zh-TW/settings.json
index a7e7fb8..b2d8f98 100644
--- a/packages/locales/src/locales/zh-TW/settings.json
+++ b/packages/locales/src/locales/zh-TW/settings.json
@@ -200,7 +200,9 @@
"pricePerYear": "{{price}}/年",
"included": "包含內容",
"getPro": "取得 Pro",
- "storeUnavailable": "此裝置不支援應用程式內購買。請在其他裝置上購買 AlterSend Pro,然後在此輸入代碼。",
+ "storeUnavailable": "此裝置不支援應用程式內購買。若您已擁有 Pro,請輸入您的代碼。",
+ "renewalIos": "訂閱會自動續訂,直到您取消。可在 App Store 設定中管理。",
+ "renewalAndroid": "訂閱會自動續訂,直到您取消。可在 Google Play 設定中管理。",
"none": "–",
"featureDirect": "直接 P2P 傳輸",
"featurePriority": "中繼忙碌時優先",