summaryrefslogtreecommitdiffstats
path: root/web
diff options
context:
space:
mode:
authorElias Nahum <nahumhbl@gmail.com>2016-01-21 10:07:29 -0300
committerElias Nahum <nahumhbl@gmail.com>2016-01-21 10:14:02 -0300
commit507fbeb068ac168868ef00bd1f40d3ba4d17c884 (patch)
tree3743620af45c649352e04e2c86587b4dbb1f7ba7 /web
parent9f526555df64885be27e38e588c23332d80cd208 (diff)
downloadchat-507fbeb068ac168868ef00bd1f40d3ba4d17c884.tar.gz
chat-507fbeb068ac168868ef00bd1f40d3ba4d17c884.tar.bz2
chat-507fbeb068ac168868ef00bd1f40d3ba4d17c884.zip
Refactoring api to use translations (chunk 1)
- Add spanish translations - Files in order by name from admin to export - Does not include api templates and tests - Fix web_test to load translations - Fix i18n to fallback to DEFAULT_LOCALE if no system locale found
Diffstat (limited to 'web')
-rw-r--r--web/web_test.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/web/web_test.go b/web/web_test.go
index 8d40810b5..237fdceaf 100644
--- a/web/web_test.go
+++ b/web/web_test.go
@@ -22,6 +22,7 @@ var URL string
func Setup() {
if api.Srv == nil {
utils.LoadConfig("config.json")
+ utils.InitTranslations()
api.NewServer()
api.StartServer()
api.InitApi()