rsnext/examples/with-next-translate
Joe Haddad 4a12fb0a5f
Normalize example gitignores (#13768)
This removes a bunch of unnecessary `.gitignore`s and fixes some CMS examples that don't ignore `node_modules` etc.
2020-06-04 20:39:52 +00: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 Normalize example gitignores (#13768) 2020-06-04 20:39:52 +00: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!