Skip to content

fix: import default translate from @vitalets/google-translate-api v7.x#5

Open
N3VERS4YDIE wants to merge 1 commit intoRushanKhan1:mainfrom
N3VERS4YDIE:fix-translate-import
Open

fix: import default translate from @vitalets/google-translate-api v7.x#5
N3VERS4YDIE wants to merge 1 commit intoRushanKhan1:mainfrom
N3VERS4YDIE:fix-translate-import

Conversation

@N3VERS4YDIE
Copy link
Copy Markdown

This PR fixes the TypeError: translate is not a function caused by incorrect destructuring import.

The package @vitalets/google-translate-api@7.x exposes translate as the default export, so the import statement was updated accordingly.

Fixes #4.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

TypeError: translate is not a function when running translation command

1 participant