Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.Sign up
Adding Intl.RelativeDateFormat example #1245
Adding RelativeDateFormat example , according to https://github.com/tc39/proposal-intl-relative-time
wbamberg left a comment
Thanks for this!
If possible we should aim to keep examples to 13 lines or less. This example will be embedded in a complete page where there will be lots of space to go into all the different options.
So I think we should just show a couple of options here.
Also I think it would be good to show more different options, rather than lots of calls with very similar arguments. For example, we could do something like:
Also ping @Elchi3 to see if this API is on his radar and if he has any other comments on it.