Localizer AI

A Flutter package for AI-powered localization and automatic translation. Translate your UI texts on the fly without maintaining .arb or JSON files manually.

Features

  • Automatic translation using OpenAI (GPT-3.5-turbo)
  • Caching of translations in SharedPreferences
  • Runtime language switching
  • Context-aware translation
  • Simple API:
await LocalizerAI().init(
  defaultLocale: 'en',
  supportedLocales: ['en', 'ar', 'fr'],
  engine: OpenAITranslator(apiKey: 'YOUR_API_KEY'),
);

String translated = await LocalizerAI().translate('Welcome');