On this crash course, we'll create a new project in the headless CMS, fill it with data, and use the content to build a multilingual Next.js app. We'll spend a lot of time in code to:
- Generate strongly typed models and structure for the content
- Set up the site for multiple languages
- Use respective language codes in content fetching and incorporate language fallbacks
- Resolve multilingual content from rich text fields
You will learn:
- How to work with content from headless CMS (Kontent.ai)
- How content model can be leveraged to generate TS types and what benefits it brings to your project
- How to add multilingual capabilities to Next.js website
- How to use language fallbacks
- What are the typical gotchas when working with multilingual content
This workshop has been presented at React Advanced 2022, check out the latest edition of this React Conference.
Comments