mirror of
https://github.com/blakeblackshear/frigate.git
synced 2026-02-02 17:25:22 +03:00
Load the translation
This commit is contained in:
parent
e194499187
commit
c4bdcc97e1
@ -8,12 +8,15 @@ import { Router } from 'preact-router';
|
||||
import Sidebar from './Sidebar';
|
||||
import { DarkModeProvider, DrawerProvider } from './context';
|
||||
import useSWR from 'swr';
|
||||
import i18n from './i18n';
|
||||
import { Suspense } from 'preact/compat';
|
||||
|
||||
export default function App() {
|
||||
const { data: config } = useSWR('config');
|
||||
const cameraComponent = config && config.ui.use_experimental ? Routes.getCameraV2 : Routes.getCamera;
|
||||
|
||||
return (
|
||||
<Suspense fallback={<ActivityIndicator />}>
|
||||
<DarkModeProvider>
|
||||
<DrawerProvider>
|
||||
<div data-testid="app" className="w-full">
|
||||
@ -45,5 +48,6 @@ export default function App() {
|
||||
</div>
|
||||
</DrawerProvider>
|
||||
</DarkModeProvider>
|
||||
</Suspense>
|
||||
);
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user