title: How to translate text from one language to another language android?
body: <p>I have a response which I parse from json and displayed the result. Is it possible to convert to other language like French, Hindi, German?</p>
  
  <p>When I browsed, I came to know google stopped on 2011 as free version and started pricing. Is there any free version to convert the response text to other language?</p>
  
  <p>Piece of code is as follows:</p>
  
  <pre><code>  TextView text; // created an id.
  
    JSONObject jsono=new JSONObject(data);
    JSONArray jarray = jsono.getJSONArray("posts");
    for (int i = 0; i &lt; jarray.length(); i++) {
     JSONObject object = jarray.getJSONObject(i);
    String name= object.getString("name");
    text.setText(name);// how to convert this to other language. 
  </code></pre>
  
  <p>Say for eg: response what I get is Good morning. which I need to translate and display in textview as Bonjour which is in French.  </p>