forked from roblandry/nodered_conversation
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixed translation strings not showing up during initial configuration…
… and options configuration added translations for english language
- Loading branch information
nfragment
committed
Mar 28, 2024
1 parent
76a8b84
commit d35ea09
Showing
2 changed files
with
38 additions
and
55 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
73 changes: 28 additions & 45 deletions
73
custom_components/nodered_conversation/translations/en.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,50 +1,33 @@ | ||
{ | ||
"config": { | ||
"error": { | ||
"cannot_connect": "Failed to connect", | ||
"invalid_auth": "Invalid authentication", | ||
"unknown": "Unexpected error" | ||
"config": { | ||
"step": { | ||
"user": { | ||
"data": { | ||
"nodered_url": "NodeRed Endpoint URL", | ||
"nodered_user": "NodeRed Endpoint Username", | ||
"nodered_pass": "NodeRed Endpoint Password" | ||
}, | ||
"step": { | ||
"user": { | ||
"data": { | ||
"api_key": "API key" | ||
} | ||
} | ||
} | ||
"description": "Enter your NodeRed endpoint URL, Username, and Password.", | ||
"title": "NodeRed Conversation Agent - Configuration" | ||
} | ||
}, | ||
"options": { | ||
"step": { | ||
"init": { | ||
"data": { | ||
"max_tokens": "Maximum tokens to return in response", | ||
"model": "Completion Model", | ||
"prompt": "Prompt Template", | ||
"temperature": "Temperature", | ||
"top_p": "Top P" | ||
} | ||
} | ||
} | ||
}, | ||
"services": { | ||
"generate_image": { | ||
"description": "Turn a prompt into an image", | ||
"fields": { | ||
"config_entry": { | ||
"description": "The config entry to use for this service", | ||
"name": "Config Entry" | ||
}, | ||
"prompt": { | ||
"description": "The text to turn into an image", | ||
"example": "A photo of a dog", | ||
"name": "Prompt" | ||
}, | ||
"size": { | ||
"description": "The size of the image to generate", | ||
"name": "Size" | ||
} | ||
}, | ||
"name": "Generate image" | ||
} | ||
"error": { | ||
"cannot_connect": "[%key:common::config_flow::error::cannot_connect%]", | ||
"invalid_auth": "[%key:common::config_flow::error::invalid_auth%]", | ||
"unknown": "[%key:common::config_flow::error::unknown%]" | ||
} | ||
}, | ||
"options": { | ||
"step": { | ||
"init": { | ||
"data": { | ||
"nodered_url": "NodeRed Endpoint URL", | ||
"nodered_user": "NodeRed Endpoint Username", | ||
"nodered_pass": "NodeRed Endpoint Password" | ||
}, | ||
"description": "Enter your NodeRed endpoint URL, Username, and Password.", | ||
"title": "NodeRed Conversation Agent - Options" | ||
} | ||
} | ||
} | ||
} |