mirror of
https://github.com/FoggedLens/iD.git
synced 2026-03-31 01:09:22 +02:00
fix locale.js
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user