Skip to content

Commit

Permalink
Add sessions translation to settings navstack (modrinth#1383)
Browse files Browse the repository at this point in the history
  • Loading branch information
Mysterious-Dev authored Sep 30, 2023
1 parent f259072 commit 8a8759b
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion pages/settings.vue
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
<NavStackItem link="/settings/pats" label="PATs">
<KeyIcon />
</NavStackItem>
<NavStackItem link="/settings/sessions" label="Sessions">
<NavStackItem link="/settings/sessions" :label="formatMessage(messages.sessionsTitle)">
<ShieldIcon />
</NavStackItem>
<NavStackItem link="/settings/monetization" label="Monetization">
Expand All @@ -44,6 +44,15 @@ import ShieldIcon from '~/assets/images/utils/shield.svg'
import KeyIcon from '~/assets/images/utils/key.svg'
import LanguagesIcon from '~/assets/images/utils/languages.svg'
const { formatMessage } = useVIntl()
const messages = defineMessages({
sessionsTitle: {
id: 'settings.sessions.title',
defaultMessage: 'Sessions',
},
})
const route = useRoute()
const auth = await useAuth()
const isStaging = useRuntimeConfig().public.siteUrl !== 'https://modrinth.com'
Expand Down

0 comments on commit 8a8759b

Please sign in to comment.