File tree Expand file tree Collapse file tree 1 file changed +7
-1
lines changed
Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -6,6 +6,12 @@ const handleInput = shallowRef('')
66const route = useRoute ()
77const { user, logout } = useAtproto ()
88
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+
915async function handleBlueskySignIn() {
1016 await authRedirect (' https://bsky.social' , { redirectTo: route .fullPath })
1117}
@@ -76,7 +82,7 @@ async function handleLogin() {
7682 <span class =" font-bold" >npmx.dev</span >
7783 </template >
7884 <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" >
8086 AT Protocol
8187 </a >
8288 </template >
You can’t perform that action at this time.
0 commit comments