mirror of
https://github.com/NodeBB/NodeBB.git
synced 2026-06-16 04:00:15 +02:00
Merge branch 'master' of https://github.com/designcreateplay/NodeBB
This commit is contained in:
@@ -25,6 +25,15 @@
|
||||
|
||||
module.exports = translator;
|
||||
|
||||
// Use this in plugins to add your own translation files.
|
||||
translator.addTranslation = function(filename, translations) {
|
||||
files.loaded[filename] = translations;
|
||||
};
|
||||
|
||||
translator.getLanguage = function() {
|
||||
return DEFAULT_LANGUAGE;
|
||||
};
|
||||
|
||||
translator.get = function (key, callback) {
|
||||
var parsedKey = key.split(':'),
|
||||
languageFile = parsedKey[0];
|
||||
|
||||
Reference in New Issue
Block a user