rescript-association / reasonml.org

Deprecated in favor of rescript-lang.org
MIT License
125 stars 34 forks source link

Add blog infra #135

Closed ryyppy closed 4 years ago

ryyppy commented 4 years ago

Before merging:

Documentation:

Tests:

believer commented 4 years ago

Hey @ryyppy thanks for this awesome effort! :smile: I saw that you've put together a custom date solution and came to think of a solution I've been using in some projects. It leverages the browser's built-in Intl.DateTimeFormat. It's supported by all major browsers and IE11 and might also be great for any future translations of the docs.

Code: Playground

MDN Documentation

ryyppy commented 4 years ago

@believer oh wow that's pretty rad! do you polyfill it for older browsers as well?

believer commented 4 years ago

@ryyppy we only support IE11 and forward, so we don't use a polyfill!