- How do you serve a page with content in multiple languages?
- What should the developer use to ensure the site is multilingual?
How do you serve a page with content in multiple languages?
To change the language, just simply set the lang attribute. We can define it anywhere in the document, such as in the body, in the paragraph, in the heading, or in the span tag. But the best practice is to set the lang in the span tag.
What should the developer use to ensure the site is multilingual?
Add a Language Selector page element to your site pages, so authenticated site users can choose their preferred language. If you have a self-service community built on the Customer Service template, add the Language Selector component to your community pages.