Skip to content

Commit

Permalink
fix(core): update prompt texts for opening new doc
Browse files Browse the repository at this point in the history
  • Loading branch information
pengx17 committed Nov 4, 2024
1 parent 9e80885 commit a655e6a
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -118,9 +118,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}>
Expand Down
1 change: 1 addition & 0 deletions packages/frontend/i18n/src/resources/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -228,6 +228,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",
Expand Down

0 comments on commit a655e6a

Please sign in to comment.