TypeError when setting up a translator

17 views
Skip to first unread message

fkguo

unread,
May 29, 2022, 7:37:51 AMMay 29
to zotero-dev
Hello,

I'm trying to set up a translator. Within the scrape function from the template, I changed the call for default import translator to the Better BibTeX,
```
let translator = Zotero.loadTranslator("import");
// translator.setTranslator('9cb70025-a888-4a29-a210-93ec52da40d4');
translator.setTranslator('ca65189f-8815-4afe-8c8b-8c7c15f0edca');
translator.setString(bibText);
```
In Scaffold, the test succeeded. However, when I tried to use the translator, I got an error:
"TypeError: this._translatorInfo is undefined".
There is no such an error if I call the default import translator.
What could be the reason?
Reply all
Reply to author
Forward
0 new messages