Skip to main content

dynamic_app_translator 1.0.6 copy "dynamic_app_translator: ^1.0.6" to clipboard
dynamic_app_translator: ^1.0.6 copied to clipboard

Real-time dynamic translation package for Flutter applications using TranslatX API with offline disk caching and instant language switcher.

🌍 Dynamic App Translator (TranslatX API) #

pub package License: MIT

A blazing-fast, real-time dynamic translation package for Flutter. Say goodbye to manual .arb files and complex Google Cloud IAM setups. Translate your entire app into 100+ languages dynamically on the fly!

🔥 Claim Your Free API Key (5,000 Words/Month)


⚡ Why choose TranslatX over Google Cloud? #

Feature Google Cloud Translation TranslatX API (This Package)
Setup Time 30+ mins (IAM, Billing, JSON keys) 5 Seconds (1 API Key)
Credit Card Required for trial ❌ Not Required
Flutter Caching Manual implementation ✅ Built-in Disk Caching
UI Rebuild Manual State Management ✅ Automatic UI Rebuild

🚀 Quick Start #

1. Get your Free API Key #

Go to the TranslatX Developer Dashboard, sign up without a credit card, and copy your API key.

2. Initialize in main.dart #

import 'package:flutter/material.dart';
import 'package:dynamic_app_translator/dynamic_app_translator.dart';

void main() async {
  WidgetsFlutterBinding.ensureInitialized();

  await DynamicTranslatorController.instance.init(
    apiKey: 'YOUR_API_KEY_HERE', // Get it from https://dynamic-translatx.vercel.app/
    defaultLanguage: 'en',
  );

  runApp(const MyApp());
}

3. Translate Any Text Instantly! #

Just append .tr() to any string. We handle the network request, caching, and state updates.

Text('Hello world! Welcome to our application.'.tr())

4. Switch Languages on the Fly #

No app restarts required. The UI updates instantly.

ElevatedButton(
  onPressed: () {
    DynamicTranslatorController.instance.changeLanguage('hi'); // Switches entire app to Hindi
  },
  child: const Text('Translate to Hindi'),
);

🧠 Smart Caching Mechanism #

We know API calls can be expensive. That's why dynamic_app_translator comes with a built-in Disk & Memory Cache. When a user sees a translated string once, it's saved locally. The next time they open the app, it loads instantly from disk without hitting the API!


📈 Dashboard & Quota #

Monitor your translation usage, active languages, and remaining free quota in real-time on your dashboard.

👉 Go to Dashboard

1
likes
160
points
644
downloads

Documentation

API reference

Publisher

unverified uploader

Weekly Downloads

Real-time dynamic translation package for Flutter applications using TranslatX API with offline disk caching and instant language switcher.

Homepage

License

MIT (license)

Dependencies

flutter, http, shared_preferences

More

Packages that depend on dynamic_app_translator