Add TODO about target language
This commit is contained in:
parent
169e29ca22
commit
a85fcbff88
|
@ -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');
|
||||
|
|
Loading…
Reference in New Issue