mirror of
https://github.com/wassname/talk.git
synced 2026-09-09 11:38:08 +08:00
Fallback to default language for timeago
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user