Implement edit

This commit is contained in:
Chi Vinh Le
2018-09-11 00:15:27 +02:00
parent 195d61d104
commit a36d944e4a
21 changed files with 494 additions and 36 deletions
@@ -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"