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-openwrt/luasrc/view | |
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-openwrt/luasrc/view')
-rw-r--r-- | themes/luci-theme-openwrt/luasrc/view/themes/openwrt.org/header.htm | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/themes/luci-theme-openwrt/luasrc/view/themes/openwrt.org/header.htm b/themes/luci-theme-openwrt/luasrc/view/themes/openwrt.org/header.htm index 873d4d948e..c5186c40c5 100644 --- a/themes/luci-theme-openwrt/luasrc/view/themes/openwrt.org/header.htm +++ b/themes/luci-theme-openwrt/luasrc/view/themes/openwrt.org/header.htm @@ -160,6 +160,7 @@ <%= css %> </style> <% end -%> +<script type="text/javascript" src="<%=url('admin/translations', luci.i18n.context.lang)%><%# ?v=PKG_VERSION %>"></script> <script type="text/javascript" src="<%=resource%>/cbi.js"></script> <script type="text/javascript" src="<%=resource%>/xhr.js"></script> <script type="text/javascript">//<![CDATA[ |