[READ-ONLY] a fast, modern browser for the npm registry

feat: directly navigate to localized atproto website like `https://atproto.com/ja` (#1136)

authored by shuuji3.xyz and committed by

GitHub 3256342b 64ca2c67

+7 -1
+7 -1
app/components/Header/AuthModal.client.vue
··· 6 6 const route = useRoute() 7 7 const { user, logout } = useAtproto() 8 8 9 + // https://atproto.com supports 4 locales as of 2026-02-07 10 + const { locale } = useI18n() 11 + const currentLang = locale.value.split('-')[0] ?? 'en' 12 + const localeSubPath = ['ko', 'pt', 'ja'].includes(currentLang) ? currentLang : '' 13 + const atprotoLink = `https://atproto.com/${localeSubPath}` 14 + 9 15 async function handleBlueskySignIn() { 10 16 await authRedirect('https://bsky.social', { redirectTo: route.fullPath }) 11 17 } ··· 76 82 <span class="font-bold">npmx.dev</span> 77 83 </template> 78 84 <template #atproto> 79 - <a href="https://atproto.com" target="_blank" class="text-blue-400 hover:underline"> 85 + <a :href="atprotoLink" target="_blank" class="text-blue-400 hover:underline"> 80 86 AT Protocol 81 87 </a> 82 88 </template>