Internationalization
Support multiple languages in your app | Expo Starter
iOS
Web
Android
This documentation will guide you through configure internationalization (i18n) in your project.
Step 1: Configuration
Update configuration file to support multiple languages in your app.
Step 2: Create or update Translation Files
Create translation JSON files in a locales
directory (or any other directory you prefer). For example:
Example translation.json
(English):
Example translation.json
(Spanish):
Step 5: Use Translations in Your Components
Use the useTranslation
hook from react-i18next
to access translations:
You can use Sherlock to manage translations in your project. Sherlock is a VS Code extension that helps you manage translations in your codebase.