パッケージ、リポジトリ、アプリカテゴリを検索

bye_bye_localization のカバー
パッケージ詳細v1.0.0+8

bye_bye_localization

任意のテキストを任意の言語に即時デバイス翻訳AIモデルを使用して翻訳できるシンプルなTextウィジェットです。テキストを提供するだけで、ウィジェットが自動的に翻訳します。そのため、ローカライズファイルを明示的に指定したり、手動で翻訳を入力する必要はありません。ウィジェットがすべてを代行します。

AndroidiOS
30日間ダウンロード
2
いいね数
35
Pub ポイント
120

パッケージをインストール

flutter pub add bye_bye_localization

パッケージ概要

公開情報に基づく選定ガイドです。参考としてご利用ください。

bye_bye_localization パッケージは、Flutterでの国際化を簡素化し、Text ウィジェット内でデバイス上で直接翻訳を可能にします。埋め込みAIモデルを使用して、任意のターゲット言語へのテキスト翻訳を自動で行い、手動のローカリゼーションファイルや翻訳管理の必要性を排除します。開発者は元のテキストと希望する言語を提供するだけで、残りの処理はウィジェットが担当します。外部依存なしに動的かつリアルタイムの翻訳が必要なアプリに最適です。

用途

  • アプリ内のリアルタイムテキスト翻訳
  • 翻訳ファイルへの依存を減らす
  • 多言語対応による迅速なプロトタイピング
  • デバイス上のプライバシーを必要とするアプリ
  • 小さなプロジェクトのi18nを簡素化する

主な機能

  • デバイス内AI翻訳
  • 外部APIは必要ありません
  • 自動言語検出
  • シンプルテキストウィジェットの統合
  • 複数の言語をサポートしています

適している対象

  • 多言語アプリの最小構成を求める開発者
  • ユーザーのプライバシーを最優先するプロジェクト
  • 即時翻訳が必要なプロトタイプ
  • サーバーサイドの翻訳サービスを回避するアプリ
  • 専任の翻訳者がいないチーム

注意事項

  • 埋め込みAIモデルによるアプリサイズの増加
  • サポートされている言語に限定
  • 古いデバイスへのパフォーマンスへの潜在的な影響
  • 翻訳の品質はモデルの正確さに依存します
  • 複雑なコンテンツを含む大規模生産には適していません

元の README

関連するソースリポジトリの README 原文のスナップショットです。最新の内容はリポジトリをご覧ください。

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

カテゴリー

依存関係

依存関係一覧 1 件

ソースリポジトリ

このパッケージを使用しているプロジェクト

データはまだありません。