fix(core): update prompt texts for opening new doc (#8696)

fix AF-1590
This commit is contained in:
pengx17 2024-11-05 07:31:00 +00:00
parent 8c650f7b43
commit e7732d0e18
No known key found for this signature in database
GPG Key ID: 23F23D9E8B3971ED
2 changed files with 10 additions and 3 deletions

View File

@ -116,9 +116,15 @@ export const OpenInAppPage = ({ urlToOpen, openHereClicked }: OpenAppProps) => {
<img src={appIcon} alt={appName} width={120} height={120} />
<div className={styles.prompt}>
<Trans i18nKey="com.affine.auth.open.affine.prompt">
Open {appName} app now
</Trans>
{openHereClicked ? (
<Trans i18nKey="com.affine.auth.open.affine.open-doc-prompt">
This doc is now opened in {appName}
</Trans>
) : (
<Trans i18nKey="com.affine.auth.open.affine.prompt">
Open {appName} app now
</Trans>
)}
</div>
<div className={styles.promptLinks}>

View File

@ -227,6 +227,7 @@
"com.affine.auth.open.affine": "Open AFFiNE",
"com.affine.auth.open.affine.download-app": "Download app",
"com.affine.auth.open.affine.prompt": "Opening <1>AFFiNE</1> app now",
"com.affine.auth.open.affine.open-doc-prompt": "This doc is now opened in <1>AFFiNE</1> app",
"com.affine.auth.open.affine.try-again": "Try again",
"com.affine.auth.open.affine.doc.open-here": "Open here instead",
"com.affine.auth.open.affine.doc.edit-settings": "Edit settings",