https://github.com/iamdevvalecha/with-i18n-rosetta
https://github.com/iamdevvalecha/with-i18n-rosetta
Last synced: about 1 month ago
JSON representation
- Host: GitHub
- URL: https://github.com/iamdevvalecha/with-i18n-rosetta
- Owner: iamdevvalecha
- Created: 2021-04-14T17:46:40.000Z (about 5 years ago)
- Default Branch: master
- Last Pushed: 2021-04-14T17:46:48.000Z (about 5 years ago)
- Last Synced: 2025-06-02T17:27:08.804Z (about 1 year ago)
- Language: JavaScript
- Homepage: with-i18n-rosetta-iamdevvalecha.vercel.app
- Size: 3.91 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# rosetta example
This example uses [rosetta](https://github.com/lukeed/rosetta), react hooks and context to provide a SSR, SSG, CSR compatible i18n solution.
In `next.config.js` you can configure the fallback language.
## 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/with-i18n-rosetta&project-name=with-i18n-rosetta&repository-name=with-i18n-rosetta)
## 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 with-i18n-rosetta with-i18n-rosetta-app
# or
yarn create next-app --example with-i18n-rosetta with-i18n-rosetta-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)).