Text-Translation-API-V3-NodeJS
Text-Translation-API-V3-NodeJS copied to clipboard
Can language stored in a variable and used in 'to' part of translation?
The language to be converted to stored in a variable and that variable to use in "to" part of coding. what are the ways to do that/How to do it? for example: var userLangauge= 'en' params: { 'api-version': '3.0', 'from': 'es', 'to': userLanguage } The above stored userLanguage to give in "to", the above given one is not working. How to make it work?