From 75d352c101dfb0263857189fb05681f7b87392c1 Mon Sep 17 00:00:00 2001 From: Aidan Honor Date: Wed, 26 Mar 2025 23:27:51 -0400 Subject: [PATCH] lint: lint fixes --- app/i18n.ts | 3 ++- components/pages/Home.tsx | 1 + 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/app/i18n.ts b/app/i18n.ts index 854e9d8..574fa04 100644 --- a/app/i18n.ts +++ b/app/i18n.ts @@ -1,6 +1,7 @@ import i18n from 'i18next' import { initReactI18next } from 'react-i18next' import LanguageDetector from 'i18next-browser-languagedetector' +import enUS from '../public/locales/en-US.json' i18n .use(LanguageDetector) @@ -8,7 +9,7 @@ i18n .init({ resources: { 'en-US': { - translation: require('../public/locales/en-US.json') + translation: enUS } }, fallbackLng: 'en-US', diff --git a/components/pages/Home.tsx b/components/pages/Home.tsx index 66ea9f0..c266a1b 100644 --- a/components/pages/Home.tsx +++ b/components/pages/Home.tsx @@ -6,6 +6,7 @@ import LastPlayed from '@/components/widgets/LastPlayed' import { useTranslation } from 'react-i18next' import Link from 'next/link' import { Mail } from 'lucide-react' + export default function Home() { const { t } = useTranslation();