moment-hijri icon indicating copy to clipboard operation
moment-hijri copied to clipboard

Simply including moment-hijri into the project sets global locale for moment to ar-sa

Open mklishevych opened this issue 6 years ago • 2 comments

Hi,

Thank you for this plugin.

I've noticed the issue described in the title. I believe it happens because of invoking the updateLocale method. If you see how it's implemented, you will notice that it sets the global locale.

https://github.com/moment/moment/blob/develop/src/lib/locale/locales.js#L143

mklishevych avatar Mar 27 '18 12:03 mklishevych

I'm guessing this was never fixed?

hafridi avatar Oct 19 '22 14:10 hafridi

@hafridi maintainer is not really responsive as you can see from the other PRs 🤷‍♂️

mklishevych avatar Oct 19 '22 18:10 mklishevych