mirror of
https://github.com/ajnart/homarr.git
synced 2025-11-06 13:35:48 +01:00
🐛 Fix bug with i18n and login screen
This commit is contained in:
@@ -18,7 +18,6 @@ module.exports = {
|
|||||||
'sl',
|
'sl',
|
||||||
'sv',
|
'sv',
|
||||||
'uk',
|
'uk',
|
||||||
'zh ',
|
|
||||||
],
|
],
|
||||||
fallbackLng: 'en',
|
fallbackLng: 'en',
|
||||||
localeDetection: true,
|
localeDetection: true,
|
||||||
|
|||||||
@@ -98,7 +98,7 @@ export default function Custom404() {
|
|||||||
export async function getStaticProps({ locale }: { locale: string }) {
|
export async function getStaticProps({ locale }: { locale: string }) {
|
||||||
return {
|
return {
|
||||||
props: {
|
props: {
|
||||||
...(await serverSideTranslations(locale, ['404'])),
|
...(await serverSideTranslations(locale, ['common'])),
|
||||||
// Will be passed to the page component as props
|
// Will be passed to the page component as props
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -6,6 +6,7 @@ import axios from 'axios';
|
|||||||
import { IconCheck, IconX } from '@tabler/icons';
|
import { IconCheck, IconX } from '@tabler/icons';
|
||||||
import { useRouter } from 'next/router';
|
import { useRouter } from 'next/router';
|
||||||
import { useForm } from '@mantine/form';
|
import { useForm } from '@mantine/form';
|
||||||
|
import { serverSideTranslations } from 'next-i18next/serverSideTranslations';
|
||||||
|
|
||||||
// TODO: Add links to the wiki articles about the login process.
|
// TODO: Add links to the wiki articles about the login process.
|
||||||
export default function AuthenticationTitle() {
|
export default function AuthenticationTitle() {
|
||||||
@@ -113,3 +114,12 @@ export default function AuthenticationTitle() {
|
|||||||
</Container>
|
</Container>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
export async function getStaticProps({ locale }: { locale: string }) {
|
||||||
|
return {
|
||||||
|
props: {
|
||||||
|
...(await serverSideTranslations(locale, ['common'])),
|
||||||
|
// Will be passed to the page component as props
|
||||||
|
},
|
||||||
|
};
|
||||||
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user