We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Example folder structure:
pages(folder) destinations(folder) [id].js
_routes.json looks like this:
{ "/": { "en": "destinations", "hr": "destinationsHr", "de": "destinationsDe" } }
translatePath usage: translatepath('/destinations', 'de')
translatepath('/destinations', 'de')
In this case, translatePath returns the original page name instead of the translation. This only happens to dynamic routes without an index.js page.
Edit: On folder structure with catch all routes works flawlessly.
pages(folder) destinations(folder) [[...id]].js
The text was updated successfully, but these errors were encountered:
Yes, in the first config, there is not any page file matching the /destinations path. You could also add an pages/destinations/index. js file.
/destinations
pages/destinations/index. js
Sorry, something went wrong.
No branches or pull requests
Example folder structure:
_routes.json looks like this:
translatePath usage:
translatepath('/destinations', 'de')
In this case, translatePath returns the original page name instead of the translation. This only happens to dynamic routes without an index.js page.
Edit:
On folder structure with catch all routes works flawlessly.
The text was updated successfully, but these errors were encountered: