mirror of
https://github.com/wassname/talk.git
synced 2026-10-27 13:20:15 +08:00
Fallback to default language for timeago
This commit is contained in:
1 parent
86258ba0c3
commit
1b3fe13e9b
1 file changed
+1
-1
@@ -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