feat(i18n): update translation (#4923)

This commit is contained in:
JimmFly
2023-11-17 17:39:33 +08:00
committed by GitHub
parent aa4c7407de
commit ce2eeeffbe
16 changed files with 3960 additions and 1839 deletions

View File

@@ -167,7 +167,9 @@ export const CloudWorkspaceMembersPanel = ({
})}
,
<div className={style.goUpgradeWrapper} onClick={handleUpgrade}>
<span className={style.goUpgrade}>go upgrade</span>
<span className={style.goUpgrade}>
{t['com.affine.payment.member.description.go-upgrade']()}
</span>
<ArrowRightBigIcon className={style.arrowRight} />
</div>
</span>

View File

@@ -128,6 +128,7 @@ export function getPlanDetail(t: ReturnType<typeof useAFFiNEI18N>) {
}
export const PlanCard = (props: PlanCardProps) => {
const t = useAFFiNEI18N();
const { detail, subscription, recurring } = props;
const loggedIn = useCurrentLoginStatus() === 'authenticated';
const currentPlan = subscription?.plan ?? SubscriptionPlan.Free;
@@ -162,7 +163,9 @@ export const PlanCard = (props: PlanCardProps) => {
? detail.price
: detail.yearlyPrice}
</span>
<span className={styles.planPriceDesc}>per month</span>
<span className={styles.planPriceDesc}>
{t['com.affine.payment.price-description.per-month']()}
</span>
</>
)}
</p>

View File

@@ -135,9 +135,12 @@ export function useIsSharedPage(
]({
preMode:
publishMode === PublicPageMode.Edgeless
? PublicPageMode.Page
: PublicPageMode.Edgeless,
currentMode: publishMode,
? t['Page']()
: t['Edgeless'](),
currentMode:
publishMode === PublicPageMode.Edgeless
? t['Edgeless']()
: t['Page'](),
}),
type: 'success',
theme: 'default',