add alerts to account and index page locales

This commit is contained in:
rjpeterson 2022-02-19 15:55:21 -06:00
parent f9e22ae8de
commit 1ee43825a9
2 changed files with 7 additions and 2 deletions

View File

@ -49,6 +49,7 @@ export async function getStaticProps({ locale }) {
'common', 'common',
'close-account', 'close-account',
'delegate', 'delegate',
'alerts',
])), ])),
// Will be passed to the page component as props // Will be passed to the page component as props
}, },
@ -231,7 +232,7 @@ export default function Account() {
> >
<div className="flex items-center"> <div className="flex items-center">
<BellIcon className="h-4 w-4 mr-1.5" /> <BellIcon className="h-4 w-4 mr-1.5" />
Alerts {t('alerts')}
</div> </div>
</Button> </Button>
{!isDelegatedAccount && ( {!isDelegatedAccount && (

View File

@ -27,7 +27,11 @@ import FavoritesShortcutBar from '../components/FavoritesShortcutBar'
export async function getStaticProps({ locale }) { export async function getStaticProps({ locale }) {
return { return {
props: { props: {
...(await serverSideTranslations(locale, ['common', 'tv-chart'])), ...(await serverSideTranslations(locale, [
'common',
'tv-chart',
'alerts',
])),
// Will be passed to the page component as props // Will be passed to the page component as props
}, },
} }