question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

I’m wondering how to approach i18n with SSG, having /{locale}/ namespace in the URL.

I guess that’s something out of scope for vitesse to do on its own? Too opinionated approach already?

Afaik there’s three potential things to do:

  1. Add a locale route
  2. Add meta tags for alternative URLs
  3. Language detection -> redirection

I’m curious if someone else was dealing with this already

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:8 (2 by maintainers)

github_iconTop GitHub Comments

4reactions
MartinMalindacommented, Mar 20, 2021

I have some WIP, I’ll see to what degree it can be generalized and merged into vitesse. If anything, I can add a note into README.md with a few pointers.

2reactions
hannoerucommented, Apr 13, 2021

@MartinMa You need to join vite’s discord server first, here is the link: https://chat.vitejs.dev/

Read more comments on GitHub >

github_iconTop Results From Across the Web

Next.js (SSG) & i18n - J Paul Lescouzères
Adding multilingual support (i18n) for a site or a web application is a real stake, as it often raises important questions such as...
Read more >
How to manage Internationalization with NextJS SSG
How to manage Internationalization with NextJS SSG ... and the NextJS documentation explains that i18n routing is not supported for SSG.
Read more >
next.js: i18n with static sites - DEV Community ‍ ‍
Sounds nice and being a fan of react-i18next I looked into next-i18next and was quite happy to see that they support Static Generation...
Read more >
[Proposal] i18n for SSG + next export #14246 - GitHub
Currently, integrating i18n libraries with Next.js and working with Automatic Page Optimization (either SSG, or totally static) is quite ...
Read more >
How to implement i18n localization in next for static site ...
I have implemented two different third party packages to achieve localization for static site generated (SSG) pages, which includes ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found