‫Hello, my friends.
‫In this tutorial we are going to start building a language translator so this app will translate the
‫text into many languages.
‫So let's start by creating an empty project inside the Android studio.
‫So I will select empty activity, I will name it as translator, or I can name it as translator, my
‫translator or anything.
‫Trance later.
‫The package name as you want.
‫I choose MasterCard in that come the translator and the language is Java Android API 21 and select finish
‫and here we go.
‫Waiting for the gravel to sync.
‫And to create our project.
‫And in this time, we are going to go and visit the Firebase documentations.
‫And here we go.
‫The developers took a google.com slash ML kit, slash language, slash translation, slash android.
‫Or you can go to the ML kit directly like developers that that google.com slash ML kit and select what
‫you want from this page.
‫So like text recognition, a translation and others, natural language, smart reply.
‫And we will see later on these, these functionalities in the later and the next projects.
‫So you can select on device translation or you can go to this link, translate text with ML Kit on Android.
‫Let's begin in your project level below.
‫Make sure you include Google's MAVEN repository in both build script and all projects section.
‫You can go to the builds scripts and section here and you ensure this Google have been added successfully
‫or has been added successfully.
‫Add the dependencies for ML kit.
‫Copy this implementation.
‫Google ML Kit.
‫Translate 17 .0.0.
‫We close this and we open the module level.
‫We paste it and click on sync now.
‫Then translate a string of text to translate a string between two languages.
‫We create a translator object, configuring it with the source and the target languages in this for.
‫So we create the options for this translator as it as an object of translator options.
‫We select the source language that we need to translate from and the target language which is German,
‫which is the targeted language that we need to translate to.
‫And then we can make a final translator object, get client and get the options, and we can also add
‫the success listener or failure listener on this functionality.
‫So let's start also adding the other functionalities.
‫So let's go to.
‫Our androids.
‫Did you and see the Grand Grendel project thing in progress waiting to finish.
‫And here we go.
‫We are ready now to start building our layout.