Hello,
Perhaps I am doing something wrong here, but I needed to do the following to use this library in module mode (when "type": "module" is specified in package.json):
importsdapifrom'sdapi';sdapi.default.translate('libro');This contradicts with the usage example in the README:
importsdapifrom'sdapi';sdapi.translate('libro');Otherwise, I get the error: TypeError: sdapi.translate is not a function
Hello,
Perhaps I am doing something wrong here, but I needed to do the following to use this library in module mode (when
"type": "module"is specified inpackage.json):This contradicts with the usage example in the README:
Otherwise, I get the error:
TypeError: sdapi.translate is not a function