Translate experimental camera view

This commit is contained in:
Nick Mowen 2022-08-29 09:27:32 -06:00
parent ac53e9c9f1
commit a0e8c59576
2 changed files with 6 additions and 3 deletions

View File

@ -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",

View File

@ -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>