mirror of
https://github.com/wassname/talk.git
synced 2026-08-04 13:23:35 +08:00
Implement edit
This commit is contained in:
@@ -47,7 +47,16 @@ interface CreateContextArguments {
|
||||
*/
|
||||
export const timeagoFormatter: Formatter = (value, unit, suffix) => {
|
||||
// We use 'in' instead of 'from now' for language consistency
|
||||
const ourSuffix = suffix === "from now" ? "in" : suffix;
|
||||
const ourSuffix = suffix === "from now" ? "noSuffix" : suffix;
|
||||
|
||||
if (unit === "second" && suffix === "ago") {
|
||||
return (
|
||||
<Localized id="framework-timeago-just-now">
|
||||
<span>Just now</span>
|
||||
</Localized>
|
||||
);
|
||||
}
|
||||
|
||||
return (
|
||||
<Localized
|
||||
id="framework-timeago"
|
||||
|
||||
Reference in New Issue
Block a user