💄 style: use credit terminology in auto top-up tooltips (#13091)

This commit is contained in:
YuTengjing
2026-03-18 11:12:39 +08:00
committed by GitHub
parent 69c24c714e
commit 7cd4b1942f
4 changed files with 8 additions and 11 deletions

View File

@@ -46,9 +46,9 @@
"credits.autoTopUp.saveSuccess": "Auto top-up settings saved",
"credits.autoTopUp.setupPaymentMethod": "Add Payment Method",
"credits.autoTopUp.targetBalance": "Target Balance",
"credits.autoTopUp.targetBalanceDesc": "The balance amount to restore to when auto top-up triggers",
"credits.autoTopUp.targetBalanceDesc": "The credit level to restore to when auto top-up triggers",
"credits.autoTopUp.threshold": "Threshold",
"credits.autoTopUp.thresholdDesc": "Auto top-up triggers when your balance falls to or below this amount",
"credits.autoTopUp.thresholdDesc": "Auto top-up triggers when your credits fall to or below this level",
"credits.autoTopUp.title": "Auto Top-Up",
"credits.autoTopUp.toggle": "Enable Auto Top-Up",
"credits.autoTopUp.upgradeHint": "Subscribe to a paid plan to enable auto top-up",

View File

@@ -46,9 +46,9 @@
"credits.autoTopUp.saveSuccess": "自动充值设置已保存",
"credits.autoTopUp.setupPaymentMethod": "添加支付方式",
"credits.autoTopUp.targetBalance": "目标余额",
"credits.autoTopUp.targetBalanceDesc": "自动充值后余额将恢复到此目标值",
"credits.autoTopUp.targetBalanceDesc": "自动充值后积分将恢复到此目标值",
"credits.autoTopUp.threshold": "触发阈值",
"credits.autoTopUp.thresholdDesc": "余额低于或等于此值时自动触发充值",
"credits.autoTopUp.thresholdDesc": "积分低于或等于此值时自动触发充值",
"credits.autoTopUp.title": "自动充值",
"credits.autoTopUp.toggle": "启用自动充值",
"credits.autoTopUp.upgradeHint": "订阅付费计划以启用自动充值",

View File

@@ -1,12 +1,10 @@
'use client';
import { type ComponentProps } from 'react';
import { type Page as PdfPage } from 'react-pdf';
import { Document as PdfDocument, pdfjs } from 'react-pdf';
// Use Vite's ?url import to get the correct hashed asset path (e.g. /spa/assets/pdf.worker-xxx.mjs)
// This overrides react-pdf's auto-detected bare filename which breaks under SPA routing.
import pdfjsWorkerUrl from 'pdfjs-dist/build/pdf.worker.min.mjs?url';
import { type ComponentProps } from 'react';
import { Document as PdfDocument, type Page as PdfPage, pdfjs } from 'react-pdf';
pdfjs.GlobalWorkerOptions.workerSrc = pdfjsWorkerUrl;

View File

@@ -71,11 +71,10 @@ export default {
'credits.autoTopUp.saveError': 'Failed to save auto top-up settings',
'credits.autoTopUp.saveSuccess': 'Auto top-up settings saved',
'credits.autoTopUp.targetBalance': 'Target Balance',
'credits.autoTopUp.targetBalanceDesc':
'The balance amount to restore to when auto top-up triggers',
'credits.autoTopUp.targetBalanceDesc': 'The credit level to restore to when auto top-up triggers',
'credits.autoTopUp.threshold': 'Threshold',
'credits.autoTopUp.thresholdDesc':
'Auto top-up triggers when your balance falls to or below this amount',
'Auto top-up triggers when your credits fall to or below this level',
'credits.autoTopUp.title': 'Auto Top-Up',
'credits.autoTopUp.toggle': 'Enable Auto Top-Up',
'credits.autoTopUp.upgradeHint': 'Subscribe to a paid plan to enable auto top-up',