ES6 has added many support for internationalization, such as time format, currency format, and digital format. Internationalization & amp; Localization (Internationalization and Localization) refers to the language for modifying software to adapt to the target market... ES6 has added many support for internationalization, such as time format, currency format, and digital format.
Internationalization & Localization (Internationalization and Localization) refers to modifying software to adapt to the language, regional differences, and technical needs of the target market.
Internationalization refers to the process of decoupling software from specific languages and regions during software design. When the software is transplanted to different languages and regions, the software itself does not need to be changed or corrected in internal engineering. Localization refers to the process of adding information related to specific region settings and translating files when porting software.
The Intl object is a namespace of ECMAScript's international API. It provides precise string comparison, numeric formatting, date and time formatting. The constructor of Collator, NumberFormat, and DateTimeFormat objects is the properties of Intl objects.
Intl. Collator (): Language-sensitive string comparison function object, constructor of collators
Intl. DateTimeFormat (): Language-sensitive date and time formatting function object constructor
Intl. NumberFormat (): Language-sensitive numeric formatting function constructor of the object
Collation)
You can sort string sets by region or Unicode.
The above is a detailed description of ES6's new feature development applet (8). For more information, see other related articles in the first PHP community!