Skip to main content

Compose Module

Tolgee Android SDK Compose module provides first-class support for Jetpack Compose and Compose Multiplatform, enabling dynamic translations in modern applications with reactive UI updates.

Why Choose Tolgee for Compose?

Transform your Jetpack Compose or Compose Multiplatform app with dynamic translations that update seamlessly without rebuilding or republishing.

Key Benefits

  • Reactive Updates: Translations update automatically when language changes
  • Compose-Native: Built specifically for Compose architecture patterns
  • State Management: Integrates seamlessly with Compose state systems
  • Performance: Optimized for Compose recomposition cycles
  • Over-the-Air: Push translation updates without app store releases
  • Multiplatform: Works with both Jetpack Compose and Compose Multiplatform

Getting Started

📦 Quickstart

Set up Tolgee Compose dependencies and configuration

🚀 Usage

Learn how to use Tolgee in your Compose UI components

🔧 Troubleshooting

Common issues and solutions for Compose integration

Key Features

Compose-Specific APIs

  • tolgeeStringResource() - Compose-optimized string retrieval
  • tolgeePluralStringResource() - Plural handling for Compose
  • LocalTolgee - CompositionLocal for dependency injection

Reactive Language Switching

@Composable
fun MyScreen() {
val text by tolgeeStringResource("welcome_message")

Text(text = text) // Automatically updates when language changes
}

State Integration

Tolgee integrates with Compose's state system to ensure UI updates happen automatically when:

  • Language is changed at runtime
  • New translations are downloaded
  • Fallback resources are loaded

Demo Application

Explore our complete Jetpack Compose demo to see all features in action:

🚀 Jetpack Compose Demo

Complete example implementation with all Compose features

Integration Path

  1. Quickstart - Add Compose-specific dependencies
  2. Usage Patterns - Learn Compose integration patterns
  3. Production Setup - Configure for deployment
  4. Troubleshooting - Resolve integration issues

Need Help?