diff options
author | Jo-Philipp Wich <jo@mein.io> | 2018-10-18 13:58:10 +0200 |
---|---|---|
committer | Jo-Philipp Wich <jo@mein.io> | 2018-11-05 11:01:45 +0100 |
commit | 21a151ac1ae0efaebe1dbe1ff51f3eceb09ab85b (patch) | |
tree | cd47c3a3abb4c8524faefdd46a2b051dd6dcd840 /themes/luci-theme-bootstrap/luasrc | |
parent | ab405edfb63c589204fed7d54748f2d1e8108d18 (diff) |
themes: load client side translations
Extend the theme headers to include the translation string scripts,
allowing client side code to translate strings without server side
support.
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
Diffstat (limited to 'themes/luci-theme-bootstrap/luasrc')
-rw-r--r-- | themes/luci-theme-bootstrap/luasrc/view/themes/bootstrap/header.htm | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/themes/luci-theme-bootstrap/luasrc/view/themes/bootstrap/header.htm b/themes/luci-theme-bootstrap/luasrc/view/themes/bootstrap/header.htm index 9ea1ff2281..d784e4ff94 100644 --- a/themes/luci-theme-bootstrap/luasrc/view/themes/bootstrap/header.htm +++ b/themes/luci-theme-bootstrap/luasrc/view/themes/bootstrap/header.htm @@ -167,6 +167,7 @@ <% if css then %> <style title="text/css"><%= css %></style> <% end -%> + <script src="<%=url('admin/translations', luci.i18n.context.lang)%><%# ?v=PKG_VERSION %>"></script> <script src="<%=resource%>/cbi.js"></script> <script src="<%=resource%>/xhr.js"></script> </head> |