Translate the sidebar

This commit is contained in:
Nick Mowen 2022-08-27 10:24:40 -06:00
parent 9accd8db39
commit ef828a303d
2 changed files with 11 additions and 8 deletions

View File

@ -1,6 +1,9 @@
{
"birdseye": "Birdseye",
"cameras": "Cameras",
"text": "Thank you for visiting our website.",
"language": "Language"
"debug": "Debug",
"documentation": "Documentation",
"events": "Events",
"github": "GitHub",
"style_guide": "Style Guide"
}

View File

@ -44,19 +44,19 @@ export default function Sidebar() {
) : null
}
</Match>
{birdseye?.enabled ? <Destination href="/birdseye" text="Birdseye" /> : null}
<Destination href="/events" text="Events" />
<Destination href="/debug" text="Debug" />
{birdseye?.enabled ? <Destination href="/birdseye" text={t('birdseye')} /> : null}
<Destination href="/events" text={t('events')} />
<Destination href="/debug" text={t('debug')} />
<Separator />
<div className="flex flex-grow" />
{ENV !== 'production' ? (
<Fragment>
<Destination href="/styleguide" text="Style Guide" />
<Destination href="/styleguide" text={t('style_guide')} />
<Separator />
</Fragment>
) : null}
<Destination className="self-end" href="https://docs.frigate.video" text="Documentation" />
<Destination className="self-end" href="https://github.com/blakeblackshear/frigate" text="GitHub" />
<Destination className="self-end" href="https://docs.frigate.video" text={t('documentation')} />
<Destination className="self-end" href="https://github.com/blakeblackshear/frigate" text={t('github')} />
</NavigationDrawer>
);
}