sdapi icon indicating copy to clipboard operation
sdapi copied to clipboard

Usage Example

Open cjmaria opened this issue 4 years ago • 0 comments

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

cjmaria avatar Jan 03 '22 20:01 cjmaria