Skip to content

Commit

Permalink
fix: update README example to reflect correct response structure and …
Browse files Browse the repository at this point in the history
…bump version to 1.1.18
  • Loading branch information
gabriel-logan committed Nov 1, 2024
1 parent e40398e commit c4ab72c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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);
},
);

Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -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"
Expand Down

0 comments on commit c4ab72c

Please sign in to comment.