Skip to content

Commit

Permalink
Merge pull request #488 from chughts/094
Browse files Browse the repository at this point in the history
094
  • Loading branch information
chughts authored Feb 28, 2021
2 parents 064da2d + 91d3e7a commit c2f1e5f
Show file tree
Hide file tree
Showing 7 changed files with 21 additions and 1 deletion.
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,10 @@ Node-RED Watson Nodes for IBM Cloud
<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>


### New in version 0.9.4
- Assistant V1 Workspace manager - Allow endpoint to be overridden through msg.params
- Language Translator, Speech to Text, Text to Speech - Sort Languages in drop down select list.

### New in version 0.9.3
- Assistant V1 - Fix alternateIntents setting.
- Assistant V2 - Allow return of request session id.
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": "node-red-node-watson",
"version": "0.9.3",
"version": "0.9.4",
"description": "A collection of Node-RED nodes for IBM Watson services",
"dependencies": {
"async": "^1.5.2",
Expand Down
3 changes: 3 additions & 0 deletions services/assistant/v1-workspace-manager.html
Original file line number Diff line number Diff line change
Expand Up @@ -356,6 +356,9 @@
<li>
<code>msg.params.apikey</code>
</li>
<li>
<code>msg.params.endpoint</code>
</li>
<li>
<code>msg.params.workspace_id</code>
</li>
Expand Down
5 changes: 5 additions & 0 deletions services/language_translator/v3-doc.html
Original file line number Diff line number Diff line change
Expand Up @@ -216,6 +216,7 @@
'bn' : 'Bengali',
'bs' : 'Bosnian',
'bg' : 'Bulgarian',
'CA-en' : 'Canadian English',
'ca' : 'Catalan',
'cs' : 'Czech',
'da' : 'Danish',
Expand Down Expand Up @@ -450,6 +451,8 @@
var input_lang_unique = input_lang.filter(tor.checkUnique);
//var output_lang_unique = output_lang.filter(tor.checkUnique);

input_lang_unique.sort();

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

Expand Down Expand Up @@ -483,6 +486,8 @@
var available_destlang = pair_lang.filter(function (model_id) {
return model_id.match('^' + doctor.srclang_selected + '-');
});

available_destlang.sort();

available_destlang.forEach(function (val) {
// can now have languages like zh-TW, so simple split on -
Expand Down
4 changes: 4 additions & 0 deletions services/language_translator/v3.html
Original file line number Diff line number Diff line change
Expand Up @@ -234,6 +234,7 @@
'bn' : 'Bengali',
'bs' : 'Bosnian',
'bg' : 'Bulgarian',
'CA-en' : 'Canadian English',
'ca' : 'Catalan',
'cs' : 'Czech',
'da' : 'Danish',
Expand Down Expand Up @@ -398,6 +399,8 @@
// Flush out the list first
$('select#node-input-destlang').empty();

available_destlang.sort();

available_destlang.forEach(function (val) {
// can now have languages like zh-TW, so simple split on -
// no longer works.
Expand Down Expand Up @@ -619,6 +622,7 @@

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

input_lang_unique.forEach(function(lang){
var selectedText = '';
Expand Down
2 changes: 2 additions & 0 deletions services/speech_to_text/v1.html
Original file line number Diff line number Diff line change
Expand Up @@ -559,6 +559,8 @@
$('select#node-input-lang').empty();
var unique_langs = stt.languages.filter(stt.onlyUnique);

unique_langs.sort();

unique_langs.forEach(function(l) {
var selectedText = '';
if (stt.language_selected === l) {
Expand Down
2 changes: 2 additions & 0 deletions services/text_to_speech/v1.html
Original file line number Diff line number Diff line change
Expand Up @@ -153,6 +153,8 @@
$('select#node-input-lang').empty();
var unique_langs = tts.languages.filter(tts.onlyUnique);

unique_langs.sort();

unique_langs.forEach(function(l) {
var selectedText = '';
if (tts.language_selected === l) {
Expand Down

0 comments on commit c2f1e5f

Please sign in to comment.