mirror of
https://github.com/ajnart/homarr.git
synced 2025-11-13 00:45:47 +01:00
Merge pull request #697 from ajnart/add-norwegian-slovak
🌐 Add Norwegian and Slovak
This commit is contained in:
@@ -25,6 +25,8 @@ module.exports = {
|
||||
'uk',
|
||||
'zh',
|
||||
'el',
|
||||
'sk',
|
||||
'no',
|
||||
],
|
||||
localePath: path.resolve('./public/locales'),
|
||||
fallbackLng: 'en',
|
||||
|
||||
@@ -9,7 +9,6 @@ import {
|
||||
} from '@mantine/core';
|
||||
import React from 'react';
|
||||
|
||||
import { serverSideTranslations } from 'next-i18next/serverSideTranslations';
|
||||
import Link from 'next/link';
|
||||
|
||||
const useStyles = createStyles((theme) => ({
|
||||
@@ -94,12 +93,3 @@ export default function Custom404() {
|
||||
</Container>
|
||||
);
|
||||
}
|
||||
|
||||
export async function getStaticProps({ locale }: { locale: string }) {
|
||||
return {
|
||||
props: {
|
||||
...(await serverSideTranslations(locale, ['common'])),
|
||||
// Will be passed to the page component as props
|
||||
},
|
||||
};
|
||||
}
|
||||
|
||||
@@ -75,6 +75,20 @@ export const languages: Language[] = [
|
||||
translatedName: 'LOLCAT',
|
||||
emoji: '🐱',
|
||||
},
|
||||
// Norwegian
|
||||
{
|
||||
shortName: 'no',
|
||||
originalName: 'Norsk',
|
||||
translatedName: 'Norwegian',
|
||||
emoji: '🇳🇴',
|
||||
},
|
||||
// Slovak
|
||||
{
|
||||
shortName: 'sk',
|
||||
originalName: 'Slovenčina',
|
||||
translatedName: 'Slovak',
|
||||
emoji: '🇸🇰',
|
||||
},
|
||||
{
|
||||
shortName: 'nl',
|
||||
originalName: 'Nederlands',
|
||||
|
||||
Reference in New Issue
Block a user