Derrick Koko

Results 5 comments of Derrick Koko

Sorry. I meant google translate https://www.npmjs.com/package/google-translate-open-api

Example: ``` import translate from 'google-translate-open-api'; const result = await translate(`I'm fine.`, { tld: "cn", to: "zh-CN", }); const data = result.data[0]; // 我很好。 ``` or ``` import translate, {...

You can create a function that converts text to your language and returns the converted text. Then anywhere you want to convert print text, you call the function

Then don't call the function on the line...