Apparently iOS complains when you use Object.defineProperty to override Intl. There doesn't seem to be a good way to force it, so just wrap the operation in a try block and default to original behavior when it fails.
I've also heard that Intl actually does play nicely with Rails, I still need to do some research there, but in the mean time I wanted to fix the docs so it's not putting out code that will bust on some browsers.
Apparently iOS complains when you use
Object.defineProperty
to overrideIntl
. There doesn't seem to be a good way to force it, so just wrap the operation in atry
block and default to original behavior when it fails.I've also heard that Intl actually does play nicely with Rails, I still need to do some research there, but in the mean time I wanted to fix the docs so it's not putting out code that will bust on some browsers.