0

When using the Google Translation API on a website, it delivers an HTML structure that include the translation options inside a selected tag.

I don't know if this even possible but I am wondering: is there any way to change this to a HMTL list or any other HTML structure??

JL-HaiNan
  • 1,004
  • 9
  • 20
Lowtrux
  • 156
  • 2
  • 12
  • 41
  • There's a difference between the translation API and the translation bar that Chrome provides. I don't think you can modify that translation bar it's part of the browser. – Dominic Feb 22 '18 at 09:26
  • What i'm trying to do is to customize the translation API not the translation widget since it's part of the browser as you said. – Lowtrux Feb 22 '18 at 14:21
  • 2
    The translation API just deals in raw data so you can display that however you want on your page, including in a select dropdown – Dominic Feb 22 '18 at 14:26
  • I'm not quite sure about your specific request, but you can take a look at this example: https://codepen.io/allurewebsolutions/pen/BRdZdB if you want to customize the translation API. – JL-HaiNan Mar 01 '18 at 19:00

0 Answers0