- English
- Spanish
- Portuguese (Brazilian)
Implementing Localization
To implement localization in your microapp, you can follow our localization guides based on your framework of choice:- React Localization Guide - For React, Next.js, and similar frameworks
- TypeScript Localization Guide - For other frameworks or vanilla JavaScript/TypeScript
1. Install the Microapp SDK
First, install the Microapp SDK for your framework:2. Create a Translations Object
Create a translations object that contains text in different languages:3. Use the Translations in Your UI
For React applications, you can use theuseLang hook to access the user’s language preference:
Testing Localization
To test your localization implementation, you can:- Use browser developer tools to change your language settings
- Use the Microapp testing tools to simulate different language preferences
- Test your application with users who speak different languages