fix locale.js

This commit is contained in:
Ansis Brammanis
2013-03-12 15:45:39 -04:00
parent 6dc7b7b236
commit d7645d7f21

View File

@@ -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;