feat(i18n): call the Capacitor entry and page "Subscription" (#3449)

## Summary

Users did not understand "Capacitor" or "Install" on the subscription
entry and page. This PR renames the user-facing text in English and
Simplified Chinese:

- Navigation, the page title, and buttons now say "Subscription" and
"Subscribe".
- Capacitor stays as the product name inside the subscription page.
- Flux stays the unit. Purchased Flux is the "Flux balance".

| Key (`settings.pages.*`) | Before (en / zh-Hans) | After (en /
zh-Hans) |
| --- | --- | --- |
| `account.capacitorEntry` | Capacitor / (missing, English shown) |
Subscription / 订阅 |
| `capacitor.title` | Capacitor / (missing, English shown) |
Subscription / 订阅 |
| `capacitor.install` | Install / 装配 | Subscribe / 订阅 |
| `capacitor.change` | Change Capacitor / 更换 Capacitor | Change
subscription / 更换订阅 |
| `capacitor.fallbackToFlux` | Use Flux when the Capacitor is empty /
Capacitor 放空后使用 Flux | Use your Flux balance when the Capacitor is empty
/ Capacitor 用完后使用 Flux 余额 |
| `capacitor.checkout.success` | Your Capacitor is installed and
charged. / Capacitor 已装配并充满。 | You are subscribed. Your Capacitor is
full. / 订阅成功,Capacitor 已充满。 |
| `account.profile...subscriptionActive` | ...on the Capacitor page... /
...在 Capacitor 页面... | ...on the Subscription page... / ...在订阅页面... |
| `account.fluxBalance` (zh-Hans) | 剩余通量 | Flux 余额 |

`capacitor.title` is also the fallback heading of the status card and
the label of its meter. On the subscription page, both now read
"Subscription".

No route, store, or backend field changes. Other locales stay with
Crowdin.

This is the first step of a subscription-first change. Later PRs move
the subscription entry to the first level and add the desktop checkout.

## Verification

- Parsed both YAML files with `yaml.safe_load`. Every changed key
resolves to the new text.
- `git diff --check`: no errors.
- Updated the assertions in `capacitor-settings-page.browser.test.ts`
and `account-settings-page.browser.test.ts` for the new text. I did not
run them locally. CI runs them.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
RainbowBird 2026-11-09 01:54:42 +08:00 • committed by GitHub
parent 9b30098aef
commit b51672dc83
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 19 additions and 17 deletions

View file

@ -303,7 +303,7 @@ pages:
logout: Sign out
fluxBalance: Flux Balance
viewFluxDetails: View details
capacitorEntry: Capacitor
capacitorEntry: Subscription
viewCapacitor: View
signedInAs: Signed in as
profile:
@ -414,7 +414,7 @@ pages:
error:
reauthenticate: Sign in again, then return here to confirm deletion. No email is sent.
fallback: Could not start deletion. Try again later.
subscriptionActive: Your subscription is still active. Cancel it on the Capacitor page first, then delete your account.
subscriptionActive: Your subscription is still active. Cancel it on the Subscription page first, then delete your account.
card:
wake-word-conflicts:
title: 'One shared wake word pronunciation needs a character | {count} shared wake word pronunciations need a character'
@ -1708,7 +1708,7 @@ pages:
buy: Charge
description: Flux packages to choose from.
capacitor:
title: Capacitor
title: Subscription
statusError: Failed to load your Capacitor. Please try again later.
packagesError: Failed to load Capacitors. Please try again later.
preferenceError: Failed to save preference. Please try again later.
@ -1717,21 +1717,21 @@ pages:
rechargesAt: Refills {date}
renewsAt: Renews {date}
expiresAt: Ends {date}
change: Change Capacitor
change: Change subscription
quota:
day: '{quota} Flux every day'
week: '{quota} Flux every week'
month: '{quota} Flux every month'
perMonth: / month
currentPackage: Current
install: Install
install: Subscribe
upgrade: Upgrade
downgrade: Downgrade
manageSubscription: Manage subscription
fallbackToFlux: Use Flux when the Capacitor is empty
fallbackToFlux: Use your Flux balance when the Capacitor is empty
fallbackToFluxHint: When off, chat and speech stop until the Capacitor refills.
checkout:
success: Your Capacitor is installed and charged.
success: You are subscribed. Your Capacitor is full.
pending: Payment received. Your Capacitor charges shortly.
canceled: Purchase was canceled.
error: Something went wrong. Please try again later.

View file

@ -262,8 +262,9 @@ pages:
notLoggedIn: 登录以查看您的帐户并访问所有功能
login: 登录
logout: 登出
fluxBalance: 剩余通量
fluxBalance: Flux 余额
viewFluxDetails: 查看详情
capacitorEntry: 订阅
viewCapacitor: 查看
signedInAs: 登录 为
profile:
@ -373,7 +374,7 @@ pages:
error:
reauthenticate: 请重新登录,再回到此处确认删除。无需接收邮件。
fallback: 无法开始删除操作,请稍后重试。
subscriptionActive: 您的订阅仍在生效。请先在 Capacitor 页面取消订阅,再删除帐户。
subscriptionActive: 您的订阅仍在生效。请先在订阅页面取消订阅,再删除帐户。
card:
wake-word-conflicts:
title: '{count} 个共享的唤醒词发音需要选择角色'
@ -1636,6 +1637,7 @@ pages:
buy: 充值
description: 可以选择购入的 Flux 电池包
capacitor:
title: 订阅
statusError: 暂时无法获取 Capacitor 的状态,可以之后再试试吗?
packagesError: 暂时无法获取可用的 Capacitor,可以之后再试试吗?
preferenceError: 偏好保存失败,请稍后再试。
@ -1644,21 +1646,21 @@ pages:
rechargesAt: '{date} 充满'
renewsAt: '{date} 续订'
expiresAt: '{date} 到期'
change: 更换 Capacitor
change: 更换订阅
quota:
day: '每天 {quota} Flux'
week: '每周 {quota} Flux'
month: '每月 {quota} Flux'
perMonth: / 月
currentPackage: 当前
install: 装配
install: 订阅
upgrade: 升级
downgrade: 降级
manageSubscription: 管理订阅
fallbackToFlux: Capacitor 放空后使用 Flux
fallbackToFlux: Capacitor 用完后使用 Flux 余额
fallbackToFluxHint: 关闭后,对话和语音会暂停,直到 Capacitor 充满。
checkout:
success: Capacitor 已装配并充满。
success: 订阅成功,Capacitor 已充满。
pending: 已收到付款,Capacitor 稍后充满。
canceled: 购买被取消
error: 哎呀,出错了,请稍后再试

View file

@ -149,7 +149,7 @@ describe('unified account deletion', () => {
const { screen, store } = await openDeletion()
await screen.getByRole('dialog').getByRole('textbox').fill('person@example.com')
await screen.getByRole('button', { name: 'Delete permanently' }).click()
await expect.element(screen.getByRole('alert')).toHaveTextContent('Cancel it on the Capacitor page')
await expect.element(screen.getByRole('alert')).toHaveTextContent('Cancel it on the Subscription page')
expect(store.isAuthenticated).toBe(true)
expect(capture.mock.calls.map(call => call[0])).toEqual(['account_deletion_requested'])
})

View file

@ -148,11 +148,11 @@ describe('capacitor quota display and purchase actions', () => {
sdk.purchase.mockResolvedValue({ customerInfo: customer('monthly') })
const screen = openPage()
await screen.getByRole('button', { name: 'Install', exact: true }).click()
await screen.getByRole('button', { name: 'Subscribe', exact: true }).click()
await vi.waitFor(() => expect(sdk.purchase).toHaveBeenCalledWith({ rcPackage: expect.objectContaining({ identifier: '$rc_monthly' }) }))
expect(requests).not.toContain('/api/v1/revenuecat/product-change')
await expect.element(screen.getByRole('status')).toHaveTextContent('Your Capacitor is installed and charged.')
await expect.element(screen.getByRole('status')).toHaveTextContent('You are subscribed. Your Capacitor is full.')
expect(screen.getByText('Callout', { exact: true }).elements()).toHaveLength(0)
})
@ -165,7 +165,7 @@ describe('capacitor quota display and purchase actions', () => {
await vi.waitFor(() => expect(sdk.getCustomerInfo).toHaveBeenCalledOnce())
expect(sdk.getOfferings).not.toHaveBeenCalled()
expect(screen.getByRole('button', { name: 'Install', exact: true }).elements()).toHaveLength(0)
expect(screen.getByRole('button', { name: 'Subscribe', exact: true }).elements()).toHaveLength(0)
resolveCustomer(customer('monthly'))
await expect.element(screen.getByRole('button', { name: 'Upgrade', exact: true })).toBeVisible()
})