rsnext/examples/with-next-translate
Tanmay Laud f00ad581a1
Added .gitignore to examples that are deployed to vercel (#15127)
Co-authored-by: Joe Haddad <joe.haddad@zeit.co>
2020-07-16 10:52:23 -04:00
..
_pages Add example with next-translate (#13511) 2020-05-28 21:31:05 +00:00
components Add example with next-translate (#13511) 2020-05-28 21:31:05 +00:00
locales Add example with next-translate (#13511) 2020-05-28 21:31:05 +00:00
public Add example with next-translate (#13511) 2020-05-28 21:31:05 +00:00
.gitignore Added .gitignore to examples that are deployed to vercel (#15127) 2020-07-16 10:52:23 -04:00
i18n.json Add example with next-translate (#13511) 2020-05-28 21:31:05 +00:00
package.json Add example with next-translate (#13511) 2020-05-28 21:31:05 +00:00
README.md Suggest npx over npm init (#13637) 2020-06-01 17:36:57 +00:00

next-translate example

This is an example of using next-translate in a Next.js project.

Deploy your own

Deploy the example using Vercel:

Deploy with Vercel

How to use

Using create-next-app

Execute create-next-app with npm or Yarn to bootstrap the example:

npx create-next-app --example with-next-translate with-next-translate-app
# or
yarn create next-app --example with-next-translate with-next-translate-app

Download manually

Download the example:

curl https://codeload.github.com/vercel/next.js/tar.gz/canary | tar -xz --strip=2 next.js-canary/examples/with-next-translate
cd with-next-translate

Install it and run:

npm install
npm run dev
# or
yarn
yarn dev

Deploy it to the cloud with Vercel (Documentation).

Notes

This example is a basic starting point for using next-translate with Next.js. It's a tool to translate Next.js applications respecting the Automatic Static Optimization. Deploy static sites with full i18n support!