en_US will no longer throw js error from missing timeago file

This commit is contained in:
Julian Lam
2014-05-30 14:45:37 -04:00
parent 125b18f704
commit be19222817

View File

@@ -22,7 +22,7 @@
translator.prepareDOM = function() {
// Load the appropriate timeago locale file
if (config.defaultLang !== 'en_GB') {
if (config.defaultLang !== 'en_GB' && config.defaultLang !== 'en_US') {
// Correct NodeBB language codes to timeago codes, if necessary
var languageCode;
switch(config.defaultLang) {