Skip to content

Commit 1e470cf

Browse files
authored
update label for card action buttons (#11260)
1 parent 4cc8833 commit 1e470cf

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

webapp/src/projects.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1359,7 +1359,7 @@ function codeCardUrl(props: Partial<ProjectsDetailProps>) {
13591359

13601360
function cardActionButton(props: Partial<ProjectsDetailProps>, className: string, text: string, type: pxt.CodeCardType, onClick: any, autoFocus?: boolean, actionTitle?: string, linkRef?: React.RefObject<HTMLAnchorElement>) {
13611361
const asLink = cardIsLink(props, type) && type != "forumExample";
1362-
const label = asLink ? lf("Open link in new window") : lf("Open in {0}", actionTitle || lf("Editor"));
1362+
const label = asLink ? lf("{0}, opens in new window", text) : lf("{0}, opens in {1}", text, actionTitle || lf("Editor"));
13631363

13641364
return asLink ? // TODO (shakao) migrate forumurl to otherAction json in md
13651365
<sui.Link

0 commit comments

Comments
 (0)