Guides
Support multiple languages in your documentation
The Guides section dives deeper into specific use cases, workflows, or advanced features of the API. It can include: Detailed Tutorials: Step-by-step guides for common tasks or integrations. Best Practices: Recommendations for efficient and secure use of the API. Advanced Features: Exploration of more complex API functionalities not covered in the basic usage examples. Guides are more narrative and can combine multiple API end
Setup
- Put all supported languages in a file.
- Change your current source configurations.
- Create the middleware that redirects users when missing locale.
- Create a dynamic route, ensure all special files are nested under
/app/[lang]
.
Get Pages
To get the pages of a specific language, use the utilities exported from
source.ts
.
Static Generation
Generate parameters for every language and page.
Last updated on