mirror of
https://github.com/wassname/talk.git
synced 2026-07-18 12:40:13 +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