GithubHelp home page GithubHelp logo

Comments (4)

aykutkardas avatar aykutkardas commented on May 23, 2024

You're right, I was thinking of doing something about it.

I'll be posting a ROADMAP soon.

Thanks. πŸŽ‰

from regexlearn.com.

aykutkardas avatar aykutkardas commented on May 23, 2024

Hi @buraksakalli,

RegexLearn uses static generation. That's why it doesn't support i18n. I need to set up a stable structure here. I'd love to know if you have any ideas on this.

from regexlearn.com.

buraksakalli avatar buraksakalli commented on May 23, 2024

Hi @aykutkardas,

You need to use getStaticPaths for static generation pages.
I have an example project which is a bit complex.

https://github.com/buraksakalli/nextjs-i18n-country-path-dynamic-routing

You can check;

  • next-i18next.config.js
  • getI18nPaths.js
  • next.config.js
  • pages/[country]/electronics/index.js -> example usage

from regexlearn.com.

aykutkardas avatar aykutkardas commented on May 23, 2024

Here I have established a dynamic structure that I think is stable and it supports SSG.

If you want to review. @buraksakalli

Related PR #91
pages/_app.js
pages/[lang]
utils/getIntlPath.js
components/IntlLink

from regexlearn.com.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.