mirror of
https://github.com/blakeblackshear/frigate.git
synced 2026-02-02 17:25:22 +03:00
Translate the sidebar
This commit is contained in:
parent
9accd8db39
commit
ef828a303d
@ -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"
|
||||
}
|
||||
@ -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>
|
||||
);
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user