Make translator loading asynchronous
Other changes: - Factored out Zotero.Translators from Zotero.Translator. The latter should be usable in the bookmarklet and connectors without changes. - configOptions, displayOptions, and hiddenPrefs no longer copy on read. I don't think this actually affects any existing code. - Zotero.Translate._loadTranslator() now returns a promise
This commit is contained in:
parent
efc4455476
commit
526441c3ca
4 changed files with 589 additions and 539 deletions
|
@ -44,6 +44,7 @@ const xpcomFilesAll = [
|
|||
'progressWindow',
|
||||
'translation/translate',
|
||||
'translation/translate_firefox',
|
||||
'translation/translator',
|
||||
'translation/tlds',
|
||||
'utilities',
|
||||
'utilities_internal',
|
||||
|
@ -104,7 +105,7 @@ const xpcomFilesLocal = [
|
|||
'timeline',
|
||||
'uri',
|
||||
'translation/translate_item',
|
||||
'translation/translator',
|
||||
'translation/translators',
|
||||
'server_connector'
|
||||
];
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue