You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Apr 14, 2021. It is now read-only.
Hello,
I would like to make Date in Armenian (locale "hy") but in my case when I include the CDN Javascript into HTML it is not working, and show "2018 M12 17, Mon".
<script src="https://cdn.polyfill.io/v2/polyfill.min.js?features=Intl.~locale.hy"></script>
<script>
var x = new Intl.DateTimeFormat(
'hy', {
weekday: 'long',
year: 'numeric',
month: 'long',
day: 'numeric'
}).format(new Date);
console.log(x);
</script>
How can I solve this issue ?
The text was updated successfully, but these errors were encountered:
The polyfill service applies the pollyfill to only an user agent which doesn't have the Intl feature implementation. This means the polyfill service doesn't apply the polyfill if you're using Chrome since Chrome supports the Intl features.
So, I've verified your result 2018 M12 17, Mon on Chrome. It's a behavior of Chrome not Intl pollyfill. I also found an issue related to hy locale for Chromium ( #842524 ). It might be related to your problem.
As a workaround for your problem, please try following step. You may be able to resolve your issue.
Hello,
I would like to make Date in Armenian (locale "hy") but in my case when I include the CDN Javascript into HTML it is not working, and show "2018 M12 17, Mon".
How can I solve this issue ?
The text was updated successfully, but these errors were encountered: