summaryrefslogtreecommitdiff
path: root/client.go
diff options
context:
space:
mode:
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