Skip to content

Commit

Permalink
Translate
Browse files Browse the repository at this point in the history
  • Loading branch information
sylvain-morin committed Feb 16, 2024
1 parent 9951a05 commit 82e57ac
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 2 deletions.
5 changes: 5 additions & 0 deletions build/inaturalistjs.js
Original file line number Diff line number Diff line change
Expand Up @@ -2033,6 +2033,11 @@ var comments = /*#__PURE__*/function () {
value: function _delete(params, options) {
return iNaturalistAPI["delete"]("comments/:id", params, options);
}
}, {
key: "translate",
value: function translate(params, options) {
return iNaturalistAPI.post("comments/translation", params, options);
}
}]);
return comments;
}();
Expand Down
4 changes: 4 additions & 0 deletions lib/endpoints/comments.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,10 @@ const comments = class comments {
static delete( params, options ) {
return iNaturalistAPI.delete( "comments/:id", params, options );
}

static translate( params, options ) {
return iNaturalistAPI.post( "comments/translation", params, options );
}
};

module.exports = comments;
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 82e57ac

Please sign in to comment.