Commit b8cae2dd authored by Jonathan Wilkes's avatar Jonathan Wilkes
Browse files

more issues revealed by jslint

parent 502ad1d2
"use strict";
var lang = require('./locales/en/translation.json');
exports.lang = lang;
exports.get_local_string = function(key) {
return recursive_key_splitter(key, lang);
}
function recursive_key_splitter(key, object) {
var subkeys = key.split(".");
if (subkeys.length > 1) {
return recursive_key_splitter(subkeys.slice(1).join("."), object[subkeys[0]]);
}
else {
} else {
return object[subkeys[0]];
}
}
exports.get_local_string = function (key) {
return recursive_key_splitter(key, lang);
};
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment