summaryrefslogtreecommitdiff
path: root/client.go
diff options
context:
space:
mode:
authorjwijenbergh <jeroenwijenbergh@protonmail.com>2022-10-06 11:32:03 +0200
committerjwijenbergh <jeroenwijenbergh@protonmail.com>2022-10-06 11:32:03 +0200
commita03caa0a79ec6234bf1447037edc9684c6c27279 (patch)
tree3648cb1017b338ad3c1dd01101034d924930c359 /client.go
parent5dad968aa90ded83d57211426bc186f6d609ef06 (diff)
Client + Python: Pass language to Register
Diffstat (limited to 'client.go')
-rw-r--r--client.go5
1 files changed, 4 insertions, 1 deletions
diff --git a/client.go b/client.go
index 506d319..033a1dc 100644
--- a/client.go
+++ b/client.go
@@ -53,6 +53,7 @@ type Client struct {
func (client *Client) Register(
name string,
directory string,
+ language string,
stateCallback func(FSMStateID, FSMStateID, interface{}),
debug bool,
) error {
@@ -65,7 +66,9 @@ func (client *Client) Register(
}
// Initialize the logger
logLevel := log.LOG_WARNING
- client.Language = "en"
+
+ // TODO: Verify language setting?
+ client.Language = language
if debug {
logLevel = log.LOG_INFO