An example that showcases a basic installation of next-intl
with the Pages Router.
The relevant integration code is:
- Set up translations in
messages/
- Set up
NextIntlClientProvider
insrc/pages/_app.tsx
- Provide messages in
src/pages/index.tsx
- Use translations in
src/pages/index.tsx
By deploying to Vercel, you can check out the example in action. Note that you'll be prompted to create a new GitHub repository as part of this, allowing you to make subsequent changes.