feat: pass language parameter to nstart-modal

This commit is contained in:
codytseng
2025-04-17 22:50:19 +08:00
parent 319ae5a0ba
commit f0fc9a7ccf
3 changed files with 7 additions and 6 deletions

View File

@@ -41,7 +41,7 @@ function AccountManagerNav({
setPage: (page: TAccountManagerPage) => void
close?: () => void
}) {
const { t } = useTranslation()
const { t, i18n } = useTranslation()
const { themeSetting } = useTheme()
const { nip07Login, bunkerLogin, nsecLogin, ncryptsecLogin, accounts } = useNostr()
@@ -81,6 +81,7 @@ function AccountManagerNav({
baseUrl: 'https://nstart.me',
an: 'Jumble',
am: themeSetting,
al: i18n.language.slice(0, 2),
onComplete: ({ nostrLogin }) => {
if (!nostrLogin) return