4a12fb0a5f
This removes a bunch of unnecessary `.gitignore`s and fixes some CMS examples that don't ignore `node_modules` etc. |
||
---|---|---|
.. | ||
_pages | ||
components | ||
locales | ||
public | ||
.gitignore | ||
i18n.json | ||
package.json | ||
README.md |
next-translate example
This is an example of using next-translate in a Next.js project.
Deploy your own
Deploy the example using 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!