aboutsummaryrefslogtreecommitdiff
path: root/views/default/js/languages.php
diff options
context:
space:
mode:
Diffstat (limited to 'views/default/js/languages.php')
-rw-r--r--views/default/js/languages.php15
1 files changed, 15 insertions, 0 deletions
diff --git a/views/default/js/languages.php b/views/default/js/languages.php
new file mode 100644
index 000000000..c51d7bcb2
--- /dev/null
+++ b/views/default/js/languages.php
@@ -0,0 +1,15 @@
+<?php
+/**
+ * @uses $vars['language']
+ */
+global $CONFIG;
+
+$language = $vars['language'];
+
+$translations = $CONFIG->translations['en'];
+
+if ($language != 'en') {
+ $translations = array_merge($translations, $CONFIG->translations[$language]);
+}
+
+echo json_encode($translations); \ No newline at end of file