sdapi
sdapi copied to clipboard
Usage Example
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):
import sdapi from 'sdapi';
sdapi.default.translate('libro');
This contradicts with the usage example in the README:
import sdapi from 'sdapi';
sdapi.translate('libro');
Otherwise, I get the error: TypeError: sdapi.translate is not a function