-
Notifications
You must be signed in to change notification settings - Fork 188
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Issue 2963: Adding Next-i18next for front-end translations #3053
Conversation
7fd3135
to
d936a6b
Compare
I'm putting this PR up but I am having ALOT of problems with the following issue: vercel/next.js#20616 and vercel/next.js#18318 We simply can't build the static pages using |
Oddly enough, I couldn't figure out how to do the Settings thing for Google Chrome but I was able to do it in Firefox. Pretty cool that going to There's quite a bit of stuff I learned while reading your PR. I knew that Next.js has its own i18n thing so I questioned why we chose to use a third-party package as opposed to something Next.js already has built-in. Apparently, Next.js internationalization routing only handles the routing and not the actual translation functionality itself. I can see Next.js internationalized routing being used to support a toggle or dropdown menu to allow users to select the language they want. next-i18next claims to fully support SSG/SSR so the error below could be a Next.js error, not next-i18next
|
I read vercel/next.js#18318 and I cannot believe the number of people running into this problem wow. I'm stumped. |
I'm assuming they have 0 intentions of providing a fix for it. I've tried to go with many of the fixes, however after attempting to do this again today, I think we should just scrap nexti18next. I've explored the routing option and if we only want the about page translated, it's doable. I might play around with this and see it out as a POC |
closing this - I got the routing option to work and will be much easier to implement than next-i18next |
Issue This PR Addresses
fixes #2963
Type of Change
Description
I added next-i18next to be able to translate our front end web page.
As of now, when you go to google and navigate to settings > language and set to spanish or english you should see the strings for the corresponding language on the page navigation.
Steps to test the PR
npm ci
cp config/env.staging .env
npm run dev
Checklist