locked
Translate html attributes such as alt tilte using http API RRS feed

  • Question

  • Greetings,

    I'm using translator http "Translate" API (GET).

    When I translate this html: <div title="this is the title">this is the text</div>

    Only the innerHtml gets translated, for example translating to spanish the result is:

    <div title="this is the title">este es el texto</div>

    I'm already setting contenttype=text/html, the result IS valid html, but title / alt are not translated.

    I am doing something wrong or is this not supported by the Microsoft Translator.

    Thanks in advance

    Monday, November 18, 2013 4:19 PM

All replies

  • Indeed the attributes are not translated. You will want to make a separate call for the attributes in need of translation.

    Chris Wendt
    Microsoft Translator

    Tuesday, November 19, 2013 2:54 AM