Add a fallback message when no locale is set

pull/749/head
David Balatero 8 years ago committed by Scott Nonnenberg
parent 9a7f4ae41c
commit 1b2e94b100
No known key found for this signature in database
GPG Key ID: A4931C09644C654B

@ -92,6 +92,7 @@ try {
messages = locale.getLocaleMessages(localeName);
} catch (e) {
console.log('Problem loading messages for locale ', localeName, e.stack);
console.log('Falling back to en locale');
localeName = 'en';
messages = locale.getLocaleMessages(localeName);

Loading…
Cancel
Save