Skip to content

There can be more than Notion and Miro. AFFiNE(pronounced [ə‘fain]) is a next-gen knowledge base that brings planning, sorting and creating all together. Privacy first, open-source, customizable and ready to use.

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

pengx17e7732d0e1828
diff --git a/packages/frontend/core/src/modules/open-in-app/views/open-in-app-page.tsx b/packages/frontend/core/src/modules/open-in-app/views/open-in-app-page.tsx
index 6f86981e90..5377ed5627 100644
--- a/packages/frontend/core/src/modules/open-in-app/views/open-in-app-page.tsx
+++ b/packages/frontend/core/src/modules/open-in-app/views/open-in-app-page.tsx
@@ -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}>
diff --git a/packages/frontend/i18n/src/resources/en.json b/packages/frontend/i18n/src/resources/en.json
index 9c1fe9979f..0dc5eee29b 100644
--- a/packages/frontend/i18n/src/resources/en.json
+++ b/packages/frontend/i18n/src/resources/en.json
@@ -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",