Skip to content

Commit c2f1e5f

Browse files
authored
Merge pull request #488 from chughts/094
094
2 parents 064da2d + 91d3e7a commit c2f1e5f

File tree

7 files changed

+21
-1
lines changed

7 files changed

+21
-1
lines changed

README.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,10 @@ Node-RED Watson Nodes for IBM Cloud
88
<a href="https://cla-assistant.io/watson-developer-cloud/node-red-node-watson"><img src="https://cla-assistant.io/readme/badge/watson-developer-cloud/node-red-node-watson" alt="CLA assistant" /></a>
99

1010

11+
### New in version 0.9.4
12+
- Assistant V1 Workspace manager - Allow endpoint to be overridden through msg.params
13+
- Language Translator, Speech to Text, Text to Speech - Sort Languages in drop down select list.
14+
1115
### New in version 0.9.3
1216
- Assistant V1 - Fix alternateIntents setting.
1317
- Assistant V2 - Allow return of request session id.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "node-red-node-watson",
3-
"version": "0.9.3",
3+
"version": "0.9.4",
44
"description": "A collection of Node-RED nodes for IBM Watson services",
55
"dependencies": {
66
"async": "^1.5.2",

services/assistant/v1-workspace-manager.html

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -356,6 +356,9 @@
356356
<li>
357357
<code>msg.params.apikey</code>
358358
</li>
359+
<li>
360+
<code>msg.params.endpoint</code>
361+
</li>
359362
<li>
360363
<code>msg.params.workspace_id</code>
361364
</li>

services/language_translator/v3-doc.html

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -216,6 +216,7 @@
216216
'bn' : 'Bengali',
217217
'bs' : 'Bosnian',
218218
'bg' : 'Bulgarian',
219+
'CA-en' : 'Canadian English',
219220
'ca' : 'Catalan',
220221
'cs' : 'Czech',
221222
'da' : 'Danish',
@@ -450,6 +451,8 @@
450451
var input_lang_unique = input_lang.filter(tor.checkUnique);
451452
//var output_lang_unique = output_lang.filter(tor.checkUnique);
452453

454+
input_lang_unique.sort();
455+
453456
input_lang_unique.forEach(function(lang){
454457
var selectedText = '';
455458

@@ -483,6 +486,8 @@
483486
var available_destlang = pair_lang.filter(function (model_id) {
484487
return model_id.match('^' + doctor.srclang_selected + '-');
485488
});
489+
490+
available_destlang.sort();
486491

487492
available_destlang.forEach(function (val) {
488493
// can now have languages like zh-TW, so simple split on -

services/language_translator/v3.html

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -234,6 +234,7 @@
234234
'bn' : 'Bengali',
235235
'bs' : 'Bosnian',
236236
'bg' : 'Bulgarian',
237+
'CA-en' : 'Canadian English',
237238
'ca' : 'Catalan',
238239
'cs' : 'Czech',
239240
'da' : 'Danish',
@@ -398,6 +399,8 @@
398399
// Flush out the list first
399400
$('select#node-input-destlang').empty();
400401

402+
available_destlang.sort();
403+
401404
available_destlang.forEach(function (val) {
402405
// can now have languages like zh-TW, so simple split on -
403406
// no longer works.
@@ -619,6 +622,7 @@
619622

620623
// Flush out the List before repopulating it.
621624
$('select#node-input-srclang').empty();
625+
input_lang_unique.sort();
622626

623627
input_lang_unique.forEach(function(lang){
624628
var selectedText = '';

services/speech_to_text/v1.html

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -559,6 +559,8 @@
559559
$('select#node-input-lang').empty();
560560
var unique_langs = stt.languages.filter(stt.onlyUnique);
561561

562+
unique_langs.sort();
563+
562564
unique_langs.forEach(function(l) {
563565
var selectedText = '';
564566
if (stt.language_selected === l) {

services/text_to_speech/v1.html

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -153,6 +153,8 @@
153153
$('select#node-input-lang').empty();
154154
var unique_langs = tts.languages.filter(tts.onlyUnique);
155155

156+
unique_langs.sort();
157+
156158
unique_langs.forEach(function(l) {
157159
var selectedText = '';
158160
if (tts.language_selected === l) {

0 commit comments

Comments
 (0)