एक सरल Text विजेट, जो किसी भी भाषा में किसी भी पाठ को तत्काल डिवाइस ट्रांसलेशन AI मॉडल के उपयोग से अनुवाद कर सकता है। आपको केवल पाठ प्रदान करना है और विजेट स्वचालित रूप से अनुवाद कर देगा, इस प्रकार आपको लोकलाइजेशन फ़ाइलों को निर्दिष्ट करने या हाथ से अनुवाद करने की आवश्यकता नहीं होगी, विजेट इसका ध्यान रखेगा।
यह अंग्रेज़ी मूल स्नैपशॉट है। नवीनतम सामग्री GitHub पर देखें।
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 📹
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
WidgetbuildWidget(){
returnFutureBuilder(
future: initTranslation(),
builder: (context, snapshot) {
if (snapshot.hasError) {
returnText('${snapshot.error}');
}
if (snapshot.connectionState == ConnectionState.done) {
returnTranslatedText('I am a text that will be translated always');
}
returnCircularProgressIndicator();
},
);
}
Future<bool> initWidget() async {
returnawaitTranslationManager().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