如何根据区域/语言格式显示使用“moment.js”的日期(某些语言默认使用不同的日期格式进行表示),还能够自定义格式按需求:如何根据用户区域使用自定义日期格式显示日期
e.g-> How can I show time using moment in this format: Sunday, January 1 2012 using moment.js which will be 2012年1月1日(日)in japan automatically. Moment library does not provide this customization by default.
i.e.-> Sunday, January 1 2012 (Using moment().format('LLLL'))?
@svarog此解决方案不适用于日语语言环境。在日本,时间格式不同。 – manoj
检测本地/语言是否为日语并提供不同的格式。 goto [momentjs](https://momentjs.com/),向下滚动,点击'japanese'按钮,网站应该显示日文格式 – svarog
不是检测所有语言和编写逻辑的可行解决方案。无论如何,谢谢。我找到了解决方案。 – manoj