aboutsummaryrefslogtreecommitdiff
path: root/htdocs/js/common/10-lang.js
diff options
context:
space:
mode:
Diffstat (limited to 'htdocs/js/common/10-lang.js')
-rw-r--r--htdocs/js/common/10-lang.js5
1 files changed, 5 insertions, 0 deletions
diff --git a/htdocs/js/common/10-lang.js b/htdocs/js/common/10-lang.js
new file mode 100644
index 0000000..bd0d8e7
--- /dev/null
+++ b/htdocs/js/common/10-lang.js
@@ -0,0 +1,5 @@
+function lang(key) {
+ return __lang[key] !== undefined ? __lang[key] : '{'+key+'}';
+}
+
+window.__lang = {}; \ No newline at end of file