mirror of
https://github.com/NodeBB/NodeBB.git
synced 2026-05-06 14:06:47 +02:00
en_US will no longer throw js error from missing timeago file
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user