Multi-language Support
Configure your Alokai Storefront to support multiple languages with both static and dynamic content.
Multi-language can be implemented by switching the language settings based on a cookie. This change only requires the frontend adjustments to ensure that the proper cookie is set and passed to your backend.
Alokai Storefront uses a vsf-locale cookie to handle i18n. This cookie is used to request a certain language for your Alokai integrations, such as e-commerce platforms and CMS. The vsf-locale cookie is set by the storefront and used by the middleware to determine which language to use.
- The
vsf-localecookie is used to set the language used by Alokai integrations useLocationcan be used to help interact with thevsf-localecookie.next-i18nextand@nuxtjs/i18nare used to handle static content translations, locale detection, and i18n routing. ::