mirror of
https://github.com/blakeblackshear/frigate.git
synced 2026-02-02 17:25:22 +03:00
Translate experimental camera view
This commit is contained in:
parent
ac53e9c9f1
commit
a0e8c59576
@ -34,6 +34,7 @@
|
|||||||
"events": "Events",
|
"events": "Events",
|
||||||
"github": "GitHub",
|
"github": "GitHub",
|
||||||
"hide": "Hide",
|
"hide": "Hide",
|
||||||
|
"history": "History",
|
||||||
"in_progress": "In Progress",
|
"in_progress": "In Progress",
|
||||||
"last_month": "Last Month",
|
"last_month": "Last Month",
|
||||||
"last_seven_days": "Last Seven Days",
|
"last_seven_days": "Last Seven Days",
|
||||||
|
|||||||
@ -7,8 +7,10 @@ import { Tabs, TextTab } from '../components/Tabs';
|
|||||||
import { LiveChip } from '../components/LiveChip';
|
import { LiveChip } from '../components/LiveChip';
|
||||||
import { DebugCamera } from '../components/DebugCamera';
|
import { DebugCamera } from '../components/DebugCamera';
|
||||||
import HistoryViewer from '../components/HistoryViewer/HistoryViewer.tsx';
|
import HistoryViewer from '../components/HistoryViewer/HistoryViewer.tsx';
|
||||||
|
import { useTranslation } from 'react-i18next';
|
||||||
|
|
||||||
export default function Camera({ camera }) {
|
export default function Camera({ camera }) {
|
||||||
|
const { t } = useTranslation();
|
||||||
const { data: config } = useSWR('config');
|
const { data: config } = useSWR('config');
|
||||||
|
|
||||||
const [playerType, setPlayerType] = useState('live');
|
const [playerType, setPlayerType] = useState('live');
|
||||||
@ -47,9 +49,9 @@ export default function Camera({ camera }) {
|
|||||||
|
|
||||||
<div className='absolute flex justify-center bottom-8 w-full'>
|
<div className='absolute flex justify-center bottom-8 w-full'>
|
||||||
<Tabs selectedIndex={1} onChange={handleTabChange} className='justify'>
|
<Tabs selectedIndex={1} onChange={handleTabChange} className='justify'>
|
||||||
<TextTab text='History' />
|
<TextTab text={t('history')} />
|
||||||
<TextTab text='Live' />
|
<TextTab text={t('live')} />
|
||||||
<TextTab text='Debug' />
|
<TextTab text={t('debug')} />
|
||||||
</Tabs>
|
</Tabs>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user