Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
dev:translators [2022/03/04 19:02] – Modernize instructions abejellinek | dev:translators [2023/08/18 09:15] (current) – [Recommendations for Translator Authors] Add one advice about not modifying the live document. zoe | ||
---|---|---|---|
Line 102: | Line 102: | ||
To submit a pull request, fork the [[https:// | To submit a pull request, fork the [[https:// | ||
- | When you submit pull request on GitHub, your translator code will be reviewed, and you will receive comments from the Zotero developers or experienced volunteers. Once you've made any necessary changes, your translator will be added to the Zotero translator repository. | + | When you submit |
==== Licensing ==== | ==== Licensing ==== | ||
Line 112: | Line 112: | ||
- '' | - '' | ||
- Make detect functions lightweight-- they may be run on pages that a user is not even considering saving. Detect functions should not need to make additional HTTP requests. This obviously runs counter to the preceding point-- find a happy medium. | - Make detect functions lightweight-- they may be run on pages that a user is not even considering saving. Detect functions should not need to make additional HTTP requests. This obviously runs counter to the preceding point-- find a happy medium. | ||
- | - Minimize HTTP requests. More HTTP requests slow down the user, cause undue load on servers, risk getting | + | |
+ | | ||
- Don't leak user data. HTTP requests should in general not be directed to 3rd-party hosts. | - Don't leak user data. HTTP requests should in general not be directed to 3rd-party hosts. | ||
- Document your code. If there are input data deficiencies and the translator is working around them, document the deficiencies. If there are specific types of pages that a web translator is for, provide example URLs and expected output. | - Document your code. If there are input data deficiencies and the translator is working around them, document the deficiencies. If there are specific types of pages that a web translator is for, provide example URLs and expected output. | ||
- Produce [[dev: | - Produce [[dev: | ||
- Run ESLint on your code before submitting it. Zotero provides an ESLint plugin for translator development. You can run it on your translator within a clone of the '' | - Run ESLint on your code before submitting it. Zotero provides an ESLint plugin for translator development. You can run it on your translator within a clone of the '' |