Skip to content
Merged
Changes from all commits
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
8 changes: 7 additions & 1 deletion app/components/Header/AuthModal.client.vue
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,12 @@ const handleInput = shallowRef('')
const route = useRoute()
const { user, logout } = useAtproto()

// https://atproto.com supports 4 locales as of 2026-02-07
const { locale } = useI18n()
const currentLang = locale.value.split('-')[0] ?? 'en'
const localeSubPath = ['ko', 'pt', 'ja'].includes(currentLang) ? currentLang : ''
const atprotoLink = `https://atproto.com/${localeSubPath}`

async function handleBlueskySignIn() {
await authRedirect('https://bsky.social', { redirectTo: route.fullPath })
}
Expand Down Expand Up @@ -76,7 +82,7 @@ async function handleLogin() {
<span class="font-bold">npmx.dev</span>
</template>
<template #atproto>
<a href="https://atproto.com" target="_blank" class="text-blue-400 hover:underline">
<a :href="atprotoLink" target="_blank" class="text-blue-400 hover:underline">
AT Protocol
</a>
</template>
Expand Down
Loading