adding a fallback for en_GB and en_US

v1.18.x
Julian Lam 10 years ago
parent 9d2c54e26a
commit 3b3c383d93

@ -47,6 +47,11 @@
// Load the appropriate timeago locale file, and correct NodeBB language codes to timeago codes, if necessary // Load the appropriate timeago locale file, and correct NodeBB language codes to timeago codes, if necessary
var languageCode; var languageCode;
switch(config.userLang) { switch(config.userLang) {
case 'en_GB':
case 'en_US':
languageCode = 'en';
break;
case 'cs': case 'cs':
languageCode = 'cz'; languageCode = 'cz';
break; break;

Loading…
Cancel
Save