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