mirror of
https://github.com/FoggedLens/iD.git
synced 2026-02-13 01:02:58 +00:00
Add checks for calling coreLocalizer.tInfo before loading strings
This commit is contained in:
@@ -260,7 +260,7 @@ export function coreLocalizer() {
|
||||
let stringsKey = locale;
|
||||
// US English is the default
|
||||
if (stringsKey.toLowerCase() === 'en-us') stringsKey = 'en';
|
||||
let result = _localeStrings[scopeId][stringsKey];
|
||||
let result = _localeStrings && _localeStrings[scopeId] && _localeStrings[scopeId][stringsKey];
|
||||
|
||||
while (result !== undefined && path.length) {
|
||||
result = result[path.pop()];
|
||||
|
||||
Reference in New Issue
Block a user