Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions translate-json
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ if (process.argv.length >= 5) {

//Translates individual string to language code
return agent('GET', apiUrl({
value: encodeURI(value),
value: encodeURIComponent(value),
languageKey,
apiKey
})).then(transformResponse).then((text) => {
Expand Down Expand Up @@ -66,4 +66,4 @@ if (process.argv.length >= 5) {

} else {
console.error('You must provide an input json file and a comma-separated list of destination language codes.');
}
}