Pair machine translation with human, vetted translation in a way that's transparent to the viewer
[somewhere i wrote about this, can’t find it right now, this will just be building a first take at a solution]
- drupal google translate with interface translation
- drupal 8 add hash to link in links alter
- trigger google translate from custom dropdown
$link['fragment'] = "googtrans(en|$lang)";
- drupal 8 inline javascript in footer
For our current approach, see https://www.drupal.org/project/cyborgtranslate
By making this simple module we successfully adopted a hybrid approach, whereby if Cambridge commits to translating elements of the site via Drupal’s built-in language interface, we can exempt those sections from Google translation.
To have a section which is not translated, because you have fully taken care of it through Drupal’s interface translation, or content translation, put class="notranslate"
on the div, span, or other element surrounding that section.