Fallback to default language for timeago

This commit is contained in:
Chi Vinh Le
2017-05-24 16:33:39 +07:00
parent 86258ba0c3
commit 1b3fe13e9b
+1 -1
View File
@@ -48,7 +48,7 @@ export function loadTranslations(newTranslations) {
}
export function timeago(time) {
return timeagoInstance.format(new Date(time), getLocale());
return timeagoInstance.format(new Date(time), lang);
}
/**