📅  最后修改于: 2020-10-22 06:23:49             🧑  作者: Mango
MomentJS允许向创建的语言环境添加自定义。本章将详细讨论它们。
以下列表显示了本地化上可能的自定义-
Sr.No. | Localization & Description |
---|---|
1 | Month Names
You can add month names to the locale customization. |
2 | Month Abbreviation
This method helps in customizing the month abbreviations. |
3 | Weekday Names
This method helps in customizing the weekdays names as per locale. |
4 | Weekday Abbreviation
This method helps in customizing the weekday abbreviations based on the locale set. |
5 | Minimal Weekday Abbreviation
This method helps in customizing the Minimal Weekday abbreviations based on the locale set. |
6 | Long Date Formats
This method helps in customizing longdateformat for a locale. |
7 | Relative Time
This method helps in obtaining the relative time. |
8 | AM/PM
This method helps in customizing the meridiem as per locale. |
9 | AM/PM Parsing
You can parse AM/PM using this method. |
10 | Calendar
This helps in customizing calendar object for a locale set. |
11 | Ordinal
The ordinal display for dates can be changed based on locale. |
12 | Relative Time Thresholds
This is used with duration.humanize where the length of duration is displayed as a few seconds ago, in a minute, an hour ago etc. |