Skip to content
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions app/components/AppHeader.vue
Original file line number Diff line number Diff line change
Expand Up @@ -218,6 +218,16 @@ onKeyStroke(
>
<AppMark class="w-6 h-auto" />
</NuxtLink>
<NuxtLink
v-if="!isSearchExpanded && !isOnHomePage && prNumber"
:to="`https://github.com/npmx-dev/npmx.dev/pull/${prNumber}`"
:aria-label="`Open GitHub pull request ${prNumber}`"
class="sm:hidden"
>
<span class="text-xs px-1.5 py-0.5 rounded badge-green font-sans font-medium ms-2">
PR #{{ prNumber }}
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

if we're internationalizing this feature, maybe "PR" should be translated as well?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

IMO, those who see this information on the page are usually redirected through a Premiere Pro (PR) preview link. I assume that those familiar with these operations are developers, and based on this assumption, PR seems to be a very clear abbreviation, so I don't think it needs to be translated.

Of course, if you feel this reason is insufficient, we can continue to discuss it.

</span>
</NuxtLink>

<!-- Desktop: Logo (navigates home) -->
<div v-if="showLogo" class="hidden sm:flex flex-shrink-0 items-center">
Expand Down
Loading