I want to set the moment.locale according to the user country by looking at the browser or timestamp or something. Not sure how this could be achieved.
currently i am achieving like this -
const userLocale = 'ja';
moment.locale(userLocale);
any ideas awesome folks?