summaryrefslogtreecommitdiffstats
path: root/web/templates
diff options
context:
space:
mode:
author=Corey Hulen <corey@hulen.com>2016-01-21 13:54:21 -0600
committer=Corey Hulen <corey@hulen.com>2016-01-21 13:54:21 -0600
commitdea84b1892be42e8d42db8b67862b56b38c0da75 (patch)
tree2427c16e886a29870b685a90ea7e5173a217875d /web/templates
parentff9bcce42d14c3b26baf2dab2a1574a3848ea93b (diff)
downloadchat-dea84b1892be42e8d42db8b67862b56b38c0da75.tar.gz
chat-dea84b1892be42e8d42db8b67862b56b38c0da75.tar.bz2
chat-dea84b1892be42e8d42db8b67862b56b38c0da75.zip
PLT-7 Adding react-intl libs
Diffstat (limited to 'web/templates')
-rw-r--r--web/templates/head.html4
-rw-r--r--web/templates/login.html2
2 files changed, 5 insertions, 1 deletions
diff --git a/web/templates/head.html b/web/templates/head.html
index b5eb3a9b3..89d0dc92b 100644
--- a/web/templates/head.html
+++ b/web/templates/head.html
@@ -42,6 +42,9 @@
<script src="/static/js/react-0.14.3.js"></script>
<script src="/static/js/react-dom-0.14.3.js"></script>
+ <script src="/static/js/react-intl-2.0.0-beta-2/react-intl.js"></script>
+ <script src="/static/js/react-intl-2.0.0-beta-2/locale-data/en.js"></script>
+ <script src="/static/js/react-intl-2.0.0-beta-2/locale-data/es.js"></script>
<script src="/static/js/jquery-2.1.4.js"></script>
<script src="/static/js/bootstrap-3.3.5.js"></script>
<script src="/static/js/bootstrap-colorpicker.min.js"></script>
@@ -60,6 +63,7 @@
window.mm_team = {{ .Team }};
window.mm_user = {{ .User }};
window.mm_channel = {{ .Channel }};
+ window.mm_locale = {{ .Locale }};
if ({{.SessionTokenIndex}} >= 0) {
window.mm_session_token_index = {{.SessionTokenIndex}};
diff --git a/web/templates/login.html b/web/templates/login.html
index a5809a1f4..f6a551220 100644
--- a/web/templates/login.html
+++ b/web/templates/login.html
@@ -20,7 +20,7 @@
</div>
</div>
<script>
-window.setup_login_page({{ .Props }});
+ window.setup_login_page({{ .Props }});
</script>
</body>
</html>