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", "birdseye": "Birdseye",
"cameras": "Cameras", "cameras": "Cameras",
"text": "Thank you for visiting our website.", "debug": "Debug",
"language": "Language" "documentation": "Documentation",
"events": "Events",
"github": "GitHub",
"style_guide": "Style Guide"
} }

View File

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