Show pronunciation text in tooltip

This commit is contained in:
Lim Chee Aun 2023-07-22 20:30:32 +08:00
parent 9869c9dc5b
commit 28ad18bd0b

View file

@ -116,7 +116,11 @@ function TranslationBlock({
icon="translate" icon="translate"
alt={`Auto-translated from ${sourceLangText}`} alt={`Auto-translated from ${sourceLangText}`}
/> />
<output lang={targetLang} dir="auto"> <output
lang={targetLang}
dir="auto"
title={pronunciationContent || ''}
>
{translatedContent} {translatedContent}
</output> </output>
</div> </div>