diff --git a/frontend/.gitignore b/frontend/.gitignore index 83e774c8c..5edd5a7fa 100644 --- a/frontend/.gitignore +++ b/frontend/.gitignore @@ -32,3 +32,5 @@ yarn-error.log* .env.production.local .vercel .env.infisical + +.vscode \ No newline at end of file diff --git a/frontend/.vscode/settings.json b/frontend/.vscode/settings.json deleted file mode 100644 index b2ae7a5ea..000000000 --- a/frontend/.vscode/settings.json +++ /dev/null @@ -1,7 +0,0 @@ -{ - "i18n-ally.localesPaths": [ - "locales", - "public/locales" - ], - "i18n-ally.sourceLanguage": "en" -} \ No newline at end of file diff --git a/frontend/next-i18next.config.js b/frontend/next-i18next.config.js index 698cf62b1..5de9c97bc 100644 --- a/frontend/next-i18next.config.js +++ b/frontend/next-i18next.config.js @@ -10,6 +10,9 @@ module.exports = { defaultLocale: "en", locales: ["en", "ko"], }, + fallbackLng: { + default: ["en"], + }, reloadOnPrerender: process.env.NODE_ENV === "development", diff --git a/frontend/pages/_app.js b/frontend/pages/_app.js index 75a44f4a3..54ed7d512 100644 --- a/frontend/pages/_app.js +++ b/frontend/pages/_app.js @@ -20,7 +20,7 @@ const App = ({ Component, pageProps, ...appProps }) => { useEffect(() => { const storedLang = localStorage.getItem("lang"); if (router.locale ?? "en" !== storedLang ?? "en") { - router.push(router.pathname, router.pathname, { + router.push(router.asPath, router.asPath, { locale: storedLang ?? "en", }); }