Our microapp is looking great. But it’s optimized for English users. Let’s make it so that the text appears in the user’s preferred language. This will enable more people to use our microapp. Microapp currently supports the following languages:Documentation Index
Fetch the complete documentation index at: https://docs.microapp.io/llms.txt
Use this file to discover all available pages before exploring further.
- 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