lint: lint fixes
This commit is contained in:
parent
2ad51ad3d7
commit
75d352c101
2 changed files with 3 additions and 1 deletions
|
@ -1,6 +1,7 @@
|
||||||
import i18n from 'i18next'
|
import i18n from 'i18next'
|
||||||
import { initReactI18next } from 'react-i18next'
|
import { initReactI18next } from 'react-i18next'
|
||||||
import LanguageDetector from 'i18next-browser-languagedetector'
|
import LanguageDetector from 'i18next-browser-languagedetector'
|
||||||
|
import enUS from '../public/locales/en-US.json'
|
||||||
|
|
||||||
i18n
|
i18n
|
||||||
.use(LanguageDetector)
|
.use(LanguageDetector)
|
||||||
|
@ -8,7 +9,7 @@ i18n
|
||||||
.init({
|
.init({
|
||||||
resources: {
|
resources: {
|
||||||
'en-US': {
|
'en-US': {
|
||||||
translation: require('../public/locales/en-US.json')
|
translation: enUS
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
fallbackLng: 'en-US',
|
fallbackLng: 'en-US',
|
||||||
|
|
|
@ -6,6 +6,7 @@ import LastPlayed from '@/components/widgets/LastPlayed'
|
||||||
import { useTranslation } from 'react-i18next'
|
import { useTranslation } from 'react-i18next'
|
||||||
import Link from 'next/link'
|
import Link from 'next/link'
|
||||||
import { Mail } from 'lucide-react'
|
import { Mail } from 'lucide-react'
|
||||||
|
|
||||||
export default function Home() {
|
export default function Home() {
|
||||||
const { t } = useTranslation();
|
const { t } = useTranslation();
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue