https://github.com/iamdevvalecha/i18n-routing
https://github.com/iamdevvalecha/i18n-routing
Last synced: about 1 month ago
JSON representation
- Host: GitHub
- URL: https://github.com/iamdevvalecha/i18n-routing
- Owner: iamdevvalecha
- Created: 2021-04-13T21:04:24.000Z (about 5 years ago)
- Default Branch: master
- Last Pushed: 2021-04-13T21:04:34.000Z (about 5 years ago)
- Last Synced: 2025-03-23T09:48:43.755Z (about 1 year ago)
- Language: JavaScript
- Homepage: i18n-routing-lake-three.vercel.app
- Size: 1.95 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Internationalized Routing
This example shows how to create internationalized pages using Next.js and the i18n routing feature. It shows a normal page, a non-dynamic `getStaticProps` page, a dynamic `getStaticProps` page, and a `getServerSideProps` page.
For further documentation on this feature see the documentation [here](https://nextjs.org/docs/advanced-features/i18n-routing)
## Deploy your own
Deploy the example using [Vercel](https://vercel.com?utm_source=github&utm_medium=readme&utm_campaign=next-example):
[](https://vercel.com/new/git/external?repository-url=https://github.com/vercel/next.js/tree/canary/examples/i18n-routing&project-name=i18n-routing&repository-name=i18n-routing)
## How to use
Execute [`create-next-app`](https://github.com/vercel/next.js/tree/canary/packages/create-next-app) with [npm](https://docs.npmjs.com/cli/init) or [Yarn](https://yarnpkg.com/lang/en/docs/cli/create/) to bootstrap the example:
```bash
npx create-next-app --example i18n-routing i18n-app
# or
yarn create next-app --example i18n-routing i18n-app
```
Deploy it to the cloud with [Vercel](https://vercel.com/new?utm_source=github&utm_medium=readme&utm_campaign=next-example) ([Documentation](https://nextjs.org/docs/deployment)).