amannn / next-intl

🌐 Internationalization (i18n) for Next.js
https://next-intl-docs.vercel.app
MIT License
2.58k stars 236 forks source link

During build process static path are not translated to its reflection from pathnames mapping from config.ts file #1277

Closed piotrsliwka333 closed 2 months ago

piotrsliwka333 commented 2 months ago

Description

After specifing pathmapping in config.ts file the build trace does not generates properly translated static path for ,,de'' language

example

Verifications

Mandatory reproduction URL

https://github.com/amannn/next-intl/tree/main/examples/example-app-router

Reproduction description

Steps to reproduce:

  1. Open reproduction
  2. Click on …
  3. See error: …

Expected behaviour

After build process generated Paths will reflect translated path for a ,,de'' language

amannn commented 2 months ago

This is working as expected, the middleware takes care of rewriting incoming requests to the corresponding built file.

See e.g. https://next-intl-example-app-router.vercel.app/de/pfadnamen