Open nanne007 opened 1 month ago
I think there might be a conflict between server-side rendering and client-side rendering. I temporarily solved this issue by directly returning enUsLocale
--- a/apps/web/src/i18n.tsx
+++ b/apps/web/src/i18n.tsx
@@ -18,10 +18,11 @@ i18n
if (!language.includes('-')) {
return
}
- if (language === 'en-US') {
- return enUsLocale
- }
- return import(`./i18n/locales/translations/${language}.json`)
+ return enUsLocale
+ // if (language === 'en-US') {
+ // return enUsLocale
+ // }
+ // return import(`./i18n/locales/translations/${language}.json`)
})
)
.on('failedLoading', (language, namespace, msg) => {
I followed the guide here https://github.com/Uniswap/interface/tree/main/apps/web to start web interface. I got errors when running
yarn start
inapps/web
folder.It has something to do with translation. How to resolve the issue?