chore(core): add pricing link in license panel (#11598)

This commit is contained in:
liuyi
2025-04-10 16:18:26 +08:00
committed by GitHub
parent a759a1988e
commit d1bd809608
4 changed files with 27 additions and 13 deletions
@@ -263,16 +263,29 @@ const ActionModal = ({
placeholder="AAAA-AAAA-AAAA-AAAA-AAAA"
/>
<span>
<Trans i18nKey="com.affine.settings.workspace.license.activate-modal.tips">
If you encounter any issues, please contact our
<a
href="mailto:support@toeverything.info"
style={{ color: 'var(--affine-link-color)' }}
>
customer support
</a>
.
</Trans>
<Trans
i18nKey="com.affine.settings.workspace.license.activate-modal.tips"
components={{
1: (
<a
href="mailto:support@toeverything.info"
style={{ color: 'var(--affine-link-color)' }}
>
customer support
</a>
),
2: (
<a
href="https://affine.pro/pricing"
target="_blank"
rel="noreferrer"
style={{ color: 'var(--affine-link-color)' }}
>
click to purchase
</a>
),
}}
/>
</span>
</>
)}
+2 -1
View File
@@ -8569,10 +8569,11 @@ export const TypedTrans: {
["1"]: JSX.Element;
}>>;
/**
* `If you encounter any issues, please contact our <1>customer support</1>.`
* `If you encounter any issues, please contact our <1>customer support</1>. No license yet? <2>Click to purchase</2>.`
*/
["com.affine.settings.workspace.license.activate-modal.tips"]: ComponentType<TypedTransProps<Readonly<{}>, {
["1"]: JSX.Element;
["2"]: JSX.Element;
}>>;
/**
* `The "<1>{{ name }}</1>" property will be removed. This action cannot be undone.`
+1 -1
View File
@@ -1462,7 +1462,7 @@
"com.affine.settings.workspace.license.buy-more-seat": "Buy more seat",
"com.affine.settings.workspace.license.activate-modal.title": "Activate License",
"com.affine.settings.workspace.license.activate-modal.description": "Enter license key to activate this self host workspace.",
"com.affine.settings.workspace.license.activate-modal.tips": "If you encounter any issues, please contact our <1>customer support</1>.",
"com.affine.settings.workspace.license.activate-modal.tips": "If you encounter any issues, please contact our <1>customer support</1>. No license yet? <2>Click to purchase</2>.",
"com.affine.settings.workspace.license.activate-success": "License activated successfully.",
"com.affine.settings.workspace.license.deactivate-modal.title": "Deactivate License",
"com.affine.settings.workspace.license.deactivate-modal.description": "Are you sure you want to deactivate this license?",
@@ -1452,7 +1452,7 @@
"com.affine.settings.workspace.license.buy-more-seat": "购买更多席位",
"com.affine.settings.workspace.license.activate-modal.title": "激活许可证",
"com.affine.settings.workspace.license.activate-modal.description": "输入许可证密钥以激活此自托管工作区。",
"com.affine.settings.workspace.license.activate-modal.tips": "如果您遇到任何问题,请联系我们的<1>客户支持</1>。",
"com.affine.settings.workspace.license.activate-modal.tips": "如果您遇到任何问题,请联系我们的<1>客户支持</1>。还没有许可证?<2>点击购买</2>。",
"com.affine.settings.workspace.license.activate-success": "许可证激活成功。",
"com.affine.settings.workspace.license.deactivate-modal.title": "停用许可证",
"com.affine.settings.workspace.license.deactivate-modal.description": "您确定要停用此许可证吗?",