Text-Translation-API-V3-NodeJS icon indicating copy to clipboard operation
Text-Translation-API-V3-NodeJS copied to clipboard

Can language stored in a variable and used in 'to' part of translation?

Open singamala opened this issue 3 years ago • 0 comments

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?

singamala avatar Jun 28 '22 12:06 singamala