diff --git a/js/lib/locale.js b/js/lib/locale.js index 91b3818a9..04d9025e7 100644 --- a/js/lib/locale.js +++ b/js/lib/locale.js @@ -18,7 +18,7 @@ function t(s, o, loc) { if (rep !== undefined) { if (o) for (var k in o) rep = rep.replace('{' + k + '}', o[k]); return rep; - } else if (o.default) { + } else if (o && o.default) { return o.default; } else { var missing = 'Missing translation: ' + s;