From c4ab72cb4431885064ec5dd9fd034bc5fb6cbae6 Mon Sep 17 00:00:00 2001 From: Gabriel Logan Date: Fri, 1 Nov 2024 17:06:47 -0300 Subject: [PATCH] fix: update README example to reflect correct response structure and bump version to 1.1.18 --- README.md | 2 +- package.json | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index ebc34dc..b5c59e3 100644 --- a/README.md +++ b/README.md @@ -228,7 +228,7 @@ translate(key, endpoint, location, fromLang, toLangs, jsonFile).then((res) => { translateText("Hello World!", fromLang, toLangs, endpoint, key, location).then( (res) => { - console.log(res.data[0].translations); + console.log(res[0].translations); }, ); diff --git a/package.json b/package.json index 474bf69..e058d49 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "azure-translator-code", - "version": "1.1.17", + "version": "1.1.18", "description": "Azure Cognitive Services Translator Text API Code for Use with Common Languages", "author": { "name": "Gabriel Logan"