Search packages, repositories and app categories

bye_bye_localization cover
Package detailsv1.0.0+8

bye_bye_localization

A simple Text Widget, that can translate any text to any language using instant on device translation AI model, all you have to do is to provide the text and the widget will translate automatically, as a result you don't have to specify and localization files and type translation manually the widget will do it for you.

AndroidiOS
30-day downloads
2
Likes
35
Pub points
120

Install package

flutter pub add bye_bye_localization

Package Overview

Package selection guidance compiled from public package information, community data, and project usage.

The bye_bye_localization package simplifies internationalization in Flutter by enabling on-device translation directly within a Text widget. It automatically translates text to any target language using an embedded AI model, eliminating the need for manual localization files or translation management. Developers只需 provide the source text and desired language, and the widget handles the rest. Ideal for apps requiring dynamic, real-time translations without external dependencies.

Use cases

  • Real-time text translation in apps
  • Reducing reliance on translation files
  • Quick prototyping with multilingual support
  • Apps needing on-device privacy
  • Simplifying i18n for small projects

Key features

  • On-device AI translation
  • No external APIs required
  • Automatic language detection
  • Simple Text widget integration
  • Supports multiple languages

Suitable for

  • Developers seeking minimal setup for multilingual apps
  • Projects prioritizing user privacy
  • Prototypes needing instant translation
  • Apps avoiding server-side translation services
  • Teams without dedicated translators

Considerations

  • Higher app size due to embedded AI model
  • Limited to supported languages
  • Potential performance impact on older devices
  • Translation quality depends on model accuracy
  • Not suitable for large-scale production with complex content

Original README

Original README snapshot from the linked source repository. Visit the repository for the latest content.

Bye Bye Localization 👋

Its just a simple Text widget that will provide automatic fast translation for any text. it supports 59 languages.

No more boring Localization configuration files, all you have to do is change your old Text() widget to TranslatedText() and enjoy the sweet sweet life without Localization

PS: the translation will be fast as it uses translation model deployed to the device under the hood.

Demo 📹

Demo

How to use ?

Step 1: All you have to do is call the widget

TranslatedText('your text')

Step2: don't forget to call init the widget using the Manager

 Future<bool> initWidget() async {
   return await TranslationManager().init(
     originLanguage: Languages.ENGLISH,
     translateToLanguage: Languages.ARABIC,
   );
 } 

Step 3: Buy me Coffee 🙂! ☕️

Buy Me a Coffee

coffee

Quick example ⚡️

Widget buildWidget(){
    return FutureBuilder(
      future: initTranslation(),
      builder: (context, snapshot) {
        if (snapshot.hasError) {
          return Text('${snapshot.error}');
        }
        if (snapshot.connectionState == ConnectionState.done) {
          return TranslatedText('I am a text that will be translated always');
        }
        return CircularProgressIndicator();
      },
    );
  }
  Future<bool> initWidget() async {
    return await TranslationManager().init(
      originLanguage: Languages.ENGLISH,
      /// Change here the language to change the translation, and re run.
      /// For example Languages.RUSSIAN.
      translateToLanguage: Languages.ARABIC,
    );
  }

Live Demo 🔆

below you will find a link to APK contains live demo

Download APK

Author ✍️

Muwaffaq Imam

  • Edu email : m.imam@innopolis.university
  • Telegram : moofiy

Categories

Dependencies

Dependency list 1 items

Source repository

Projects using this package

No data available yet.