ebay-api
Version:
eBay API for Node and Browser
25 lines (24 loc) • 775 B
JavaScript
var __importDefault = (this && this.__importDefault) || function (mod) {
return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });
const index_js_1 = __importDefault(require("../../index.js"));
/**
* This API allows 3rd party developers to translate item title, description, search query.
*/
class Translation extends index_js_1.default {
get basePath() {
return '/commerce/translation/v1_beta';
}
/**
* Translates input text inot a given language.
*
* @param body TranslateRequest
*/
translate(body) {
return this.post(`/translate`, body);
}
}
exports.default = Translation;
Translation.id = 'Translation';
;