add translation keys
This commit is contained in:
@@ -6,6 +6,10 @@
|
|||||||
"your-library-is-empty": "Your Library is empty",
|
"your-library-is-empty": "Your Library is empty",
|
||||||
"category-is-empty": "Category is Empty",
|
"category-is-empty": "Category is Empty",
|
||||||
"could-not-load-manga": "Could not load manga"
|
"could-not-load-manga": "Could not load manga"
|
||||||
|
},
|
||||||
|
"Browse": {
|
||||||
|
"sources": "Sources",
|
||||||
|
"extensions": "Extensions"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -11,8 +11,11 @@ import Tab from '@mui/material/Tab';
|
|||||||
import TabPanel from 'components/util/TabPanel';
|
import TabPanel from 'components/util/TabPanel';
|
||||||
import Sources from 'screens/Sources';
|
import Sources from 'screens/Sources';
|
||||||
import Extensions from 'screens/Extensions';
|
import Extensions from 'screens/Extensions';
|
||||||
|
import { useTranslation } from 'react-i18next';
|
||||||
|
|
||||||
export default function Browse() {
|
export default function Browse() {
|
||||||
|
const { t } = useTranslation();
|
||||||
|
|
||||||
const [tabNum, setTabNum] = useState<number>(0);
|
const [tabNum, setTabNum] = useState<number>(0);
|
||||||
|
|
||||||
return (
|
return (
|
||||||
@@ -27,8 +30,8 @@ export default function Browse() {
|
|||||||
scrollButtons
|
scrollButtons
|
||||||
allowScrollButtonsMobile
|
allowScrollButtonsMobile
|
||||||
>
|
>
|
||||||
<Tab sx={{ textTransform: 'none' }} label="Sources" />
|
<Tab sx={{ textTransform: 'none' }} label={t('screens.Browse.sources')} />
|
||||||
<Tab sx={{ textTransform: 'none' }} label="Extensions" />
|
<Tab sx={{ textTransform: 'none' }} label={t('screens.Browse.extensions')} />
|
||||||
</Tabs>
|
</Tabs>
|
||||||
<TabPanel index={0} currentIndex={tabNum}>
|
<TabPanel index={0} currentIndex={tabNum}>
|
||||||
<Sources />
|
<Sources />
|
||||||
|
|||||||
@@ -21,6 +21,7 @@ import { useTranslation } from 'react-i18next';
|
|||||||
|
|
||||||
export default function Library() {
|
export default function Library() {
|
||||||
const { t } = useTranslation();
|
const { t } = useTranslation();
|
||||||
|
|
||||||
const [lastLibraryUpdate, setLastLibraryUpdate] = useState(Date.now());
|
const [lastLibraryUpdate, setLastLibraryUpdate] = useState(Date.now());
|
||||||
const { data: tabsData, error: tabsError, loading } = useQuery<ICategory[]>('/api/v1/category');
|
const { data: tabsData, error: tabsError, loading } = useQuery<ICategory[]>('/api/v1/category');
|
||||||
const tabs = tabsData ?? [];
|
const tabs = tabsData ?? [];
|
||||||
|
|||||||
Reference in New Issue
Block a user