I'am creating a social media platform. So there is a comment section. I created a translating function to translate any language comment to english (like in instagram or youtube). But the problem is if the language in the comment is already in english i don't want to show the 'Translate' button below to that comment. So how can i detect the language or language code from that comment to make this functionality. Is there any package available to detect the language code from the string.
Eg: If the comment is 'Hello how are you'. Then i dont want to show that translate button under this comment. But if the comment is 'नमस्ते कैसी हो तुम. I want to show translate button. I want to detect wheather the language is in english 'en' or not.
I had this problem too and following link helped me to get these things successfully-
How to get timezone, Language and County Id in flutter by the location of device in flutter?
Related
I want to make an app that can change its language to sign language but I couldnt find any resources or packages that can help me change text to sign language
What do You mean when You write about "sign language"?
You can use this package: https://pub.dev/packages/localization and detect system language or manually choose language. How to set manually language? For example You can create dropdown with list of supported languages and switch langue every time, when You change app language on dropdown button.
I want to make a dropdown item list of different languages and when user selects one of these app language should change. I don't know what logic to apply for changing language please help me.
This is the topic of internationalization: https://docs.flutter.dev/development/accessibility-and-localization/internationalization
I have found translator's:
https://pub.dev/packages/translator
https://pub.dev/packages/flutter_translate
https://pub.dev/packages/google_translator
By the plugins I writtend you have documentations but you also can go to youtube and look a tutorial about them.
Next time you can simple google what you want to have or go to pub.dev and writte in the search bar what you want.
I wish you a good day!
Need help to understand if Flutter can help us.
We are looking at flutter for app development for a rewrite of a js electron for desktop and js webview for mobiles.
It is basically a sophisticated reading app with multiple dictionaries and searching algorithms and other features specific to an Asian language and also English parallel translations.
We want to display Religious books in the native Unicode language with extensive dictionary support.
The books will have some bold and heading text markup (the markup style can be any format but we currently use html styles).
The books will be in a sqlite DB and streamed to the user.
The books will be stored in the db by paragraph.. We need to display this in a built up flow to the user.
The books will have some items which can be displayed or hidden upon user request but we can regenerate the display if needed. (currently it does live through js).
The books will need to communicate if a tap() or Textselect() event has been called (we often tap to select a word and it goes to a custom dictionary).
Searching for strings in the book will be done by paragraph and then we need to 1) highlight the text and bring the user to that text.
We wish to implement infinite scroll or "Lazy load" as the books are very big and often text processing to change the native script font is involved before display.
Conclusion
I think this captures much of what we want to have.
I have done some work in flutter, but i'm very new to it.
It seems that there is a SelectableText.rich widget and perhaps we could connect them together in an infinite scroll list widget from pub.dev
For hiding the page numbers.. and alt readings, it is fine to reload the book and remove those as we feed the widget with text.
There are a few html widgets, but I'm not sure if it gives select and tap events.
Can Flutter do this for us?
Are there packages that I'm not aware of?
Am I heading in the wrong direction?
I have done a test called https://github.com/bksubhuti/mydbtest
It seems to work.. the selecting of texts are off by a few bits, but it is workable..
However, I have found a full app for my purpose already written in flutter with a sqlite philosophy already working. The dev and myself are in touch and the project has been upgraded to null safety. Flutter is awesome. In about a month.. part time.. I have learned flutter and written my first app and submitted it to the play store called Buddhist Sun. (pending approval). I use sqflite and the multiplatform eq for getting cities.. the db search of cities was more of a flutter tutorial for me than purpose.
https://github.com/bksubhuti/buddhist_sun
Flutter will be the language of the future. I'm so amazed at how great it works and all the packages on pub.dev
Is it possible to change the result language of the Google Places Autocomplete iOS component (similar to changing it when using JavaScript but in Swift)? Specifically I would like to change the search results language.
Per default it seems to be set to the phone's system language meaning that on my German phone I get German city names and on my English phone I get English ones.
[EDIT]: I'm using the Google Placepicker Library that can be installed via Cocoa Pods. My code looks very similar to the first code snippet on the linked page.
i have success fully implemented the ispeech API see http://www.ispeech.org/developers for my app to convert speech to text(see the demo app in the sdk http://www.ispeech.org/instructions/sampleprojects/iphone/IntegrationGuide.html). But unfortunately it takes what we speak as only in english and translte it to text.
what i need.
There is a "speak" button that listens what the user spokes and convert it to text(that works fine for english). Also another button that allows the user to select a language as seen in this appscreenshot( http://screencast.com/t/7vBFH565qD). So when the user speaks in the selected language it should get converted to the same language. In my case whatever we speak it takes the input only in english..
Thanks all..
iSpeech also supports more languages, you can find the list with their corresponding locale identifiers here:
http://www.ispeech.org/api
To set a new language you have the "ISpeechSetLocale" method
[_iSpeech ISpeechSetLocale:#"fr-FR"];
http://www.ispeech.org/developer/iframe?src=/iphonesdkdoc/
Why cant you use the NUANCE API which supports speech to text in multiple languages. see the following link and register there to use their iOS sdk .
http://dragonmobile.nuancemobiledeveloper.com/public/index.php?task=supportedLanguages