Add TODO about target language

This commit is contained in:
ekzyis 2022-12-25 04:53:50 +01:00
parent 169e29ca22
commit a85fcbff88
1 changed files with 1 additions and 0 deletions

View File

@ -77,6 +77,7 @@ function createButton(textNode) {
btn.onclick = async (e) => {
const hasTranslation = !!textNode.querySelector('hr');
if (hasTranslation) return;
// TODO: let user choose target language
const t = await translate(textNode.innerText, 'auto', 'en').catch(console.error);
if (t) {
const divider = document.createElement('hr');