aboutsummaryrefslogtreecommitdiff
path: root/js
diff options
context:
space:
mode:
Diffstat (limited to 'js')
-rw-r--r--js/lib/languages.js6
1 files changed, 5 insertions, 1 deletions
diff --git a/js/lib/languages.js b/js/lib/languages.js
index 82cfa7a01..0ac654508 100644
--- a/js/lib/languages.js
+++ b/js/lib/languages.js
@@ -6,10 +6,14 @@ elgg.provide('elgg.config.translations');
elgg.config.language = 'en';
+/**
+ * Analagous to the php version. Merges translations for a
+ * given language into the current translations map.
+ */
elgg.add_translation = function(lang, translations) {
elgg.provide('elgg.config.translations.' + lang);
- $.extend(elgg.config.translations[lang], translations);
+ elgg.extend(elgg.config.translations[lang], translations);
};
/**