This is a Next.js app illustrating how to use use-intl to render i18n-ready PDFs with https://react-pdf.org/.
First, run the development server:
npm run dev
# or
yarn dev
Open the API
http://localhost:3000/api/pdf?locale=de
with your browser to see the translated PDF. It also works with ?locale=en
.
Or open the page and use the language selector: http://localhost:3000.
You can start editing the PDF by modifying pages/api/pdf.tsx
.
The easiest way to deploy your Next.js app is to use the Vercel Platform from the creators of Next.js.
Check out our Next.js deployment documentation for more details.
Thanks goes to these wonderful people (emoji key):
Stefan Natter 🤔 💻 |
This project follows the all-contributors specification. Contributions of any kind welcome!