From c245f9be7f0f5e5143008f0a8e5edce319144769 Mon Sep 17 00:00:00 2001 From: king_he <6384784@qq.com> Date: Sat, 25 Jun 2022 02:00:38 +0000 Subject: [PATCH] update en/application-dev/internationalization/intl-guidelines.md. Signed-off-by: king_he <6384784@qq.com> --- .../internationalization/intl-guidelines.md | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/en/application-dev/internationalization/intl-guidelines.md b/en/application-dev/internationalization/intl-guidelines.md index a27df95ea9..81c1a1a7fa 100644 --- a/en/application-dev/internationalization/intl-guidelines.md +++ b/en/application-dev/internationalization/intl-guidelines.md @@ -89,7 +89,7 @@ Use [DateTimeFormat](../reference/apis/js-apis-intl.md) APIs to format the date ``` 2. Format the date and time.
- Call the **format** method to format a **Date** object. This method returns a string representing the formatting result. + Call the **format** method to format the date and time in the DateTimeFormat object. This method returns a string representing the formatting result. ``` Date date = new Date(); @@ -97,7 +97,7 @@ Use [DateTimeFormat](../reference/apis/js-apis-intl.md) APIs to format the date ``` 3. Format a period.
- Call the **formatRange** method to format a period. This method requires input of two **Date** objects, which respectively indicate the start date and end date of a period. This method returns a string representing the formatting result. + Call the **formatRange** method to format the period in the **DateTimeFormat** object. This method requires input of two **Date** objects, which respectively indicate the start date and end date of a period. This method returns a string representing the formatting result. ``` Date startDate = new Date(); @@ -113,9 +113,9 @@ Use [DateTimeFormat](../reference/apis/js-apis-intl.md) APIs to format the date ``` -## Number Formatting +## Formatting Numbers -Use [NumberFormat](../reference/apis/js-apis-intl.md) APIs to format a number for a specific locale. +Use [NumberFormat](../reference/apis/js-apis-intl.md) APIs to format numbers for a specific locale. ### Available APIs @@ -161,7 +161,7 @@ Use [NumberFormat](../reference/apis/js-apis-intl.md) APIs to format a number fo ``` -## String Sorting +## Sorting Strings Use [Collator](../reference/apis/js-apis-intl.md) APIs to sort strings based on a specific locale. Users in different regions have different preferences for string sorting. @@ -248,7 +248,7 @@ Use [PluralRules](../reference/apis/js-apis-intl.md) APIs to determine the singu ``` -## Formatting Relative Time +## Formatting the Relative Time Use [RelativeTimeFormat](../reference/apis/js-apis-intl.md) APIs to format the relative time for a specific locale. -- GitLab