Installation
Getting started with AutoLocalise is simple. Choose your platform below to get started.
Platform Support
AutoLocalise supports multiple platforms with optimized SDKs:
- React - Client-side and Server-side rendering support
- Next.js - Full SSR/SSG support with automatic locale detection
- React Native - Native mobile applications
- Expo - Managed React Native workflow
- Python - Django, FastAPI, Flask and other web frameworks
React & Next.js
For React web applications and Next.js with advanced SSR support:
npm install react-autolocalise
Key Features:
- Client-side translation with
useAutoTranslate
hook - Server-side rendering with
withServerTranslation
HOC - Automatic locale detection middleware
- Nested formatting support
- Zero configuration required
React Native & Expo
For React Native and Expo mobile applications:
npm install react-native-autolocalise @react-native-async-storage/async-storage
Key Features:
- Offline-first caching with AsyncStorage
- Native text formatting support
- Expo localization API integration
- Lightweight and efficient
Note: The
@react-native-async-storage/async-storage
package is required for offline caching.
Python
For Python web frameworks (Django, FastAPI, Flask):
pip install autolocalise
Key Features:
- Template integration for Django
- Jinja2 support for Flask/FastAPI
- Server-side translation caching
- RESTful API integration
Next Steps
Choose your platform-specific guide:
- React (Client-side) → Basic Setup
- Next.js (SSR) → Next.js SSR Guide
- React Native/Expo → Mobile Setup
- Python → Python Integration