Re: Need Translation example from hi to en

28 views
Skip to first unread message

Alan Knight

unread,
Jun 8, 2018, 12:53:36 PM6/8/18
to Adroit AI, mi...@dartlang.org, dgr...@google.com
Intl itself doesn't do the translations, it handles displaying the translated versions if you have them. You can use the intl_translation package to find the code written using Intl.message calls and write it to an ARB file. That can be translated, for example, using the Google Translator's Toolkit, and you can generate code from that which will display the translated versions when you have set the Intl.defaultLocale. See  https://pub.dartlang.org/packages/intl_translation and in particular you can look at the round-trip test in https://github.com/dart-lang/intl_translation/tree/master/test/message_extraction  Looking at the debug.sh shell script might help, as it generates the files locally rather than in a temporary directory which is then deleted.

If you're using Flutter, there are additional procedures, see https://flutter.io/tutorials/internationalization/

On Fri, Jun 8, 2018 at 12:59 AM Adroit AI <in...@nextgenaibots.in> wrote:

Hi,

 

Please help me to get an example of intl plugin.

 

I want to convert Hindi word to English word using intl: "0.15.6" or some other way from where we can achieve.

 

Example::

 

“गोरखपुर” hindi word should be “Gorakhpur”

 

 

Please help me.

 

BR//

Mukut

Alan Knight

unread,
Jun 8, 2018, 1:51:00 PM6/8/18
to ADROIT AI, mi...@dartlang.org, dgr...@google.com
You can get a free machine translation on the Google Translator's Toolkit, or you can provide your own.

On Fri, Jun 8, 2018 at 10:44 AM ADROIT AI <in...@nextgenaibots.in> wrote:
Thanks for reply.

Yes I am working on flutter and calling api where english words is needed so I have to convert hindi word to english and then pass into API 
That's what I am looking for.since google translation is not free so I am looking some alternatives



Sent from my Samsung Galaxy smartphone.
Reply all
Reply to author
Forward
0 new messages