填寫這份《一分鐘調查》,幫我們(開發組)做得更好!去填寫Home

getLocaleExtraDayPeriods

檢索特定於語言環境的一天時段,該時段大致指示如何用不同的語言分解一天。例如,對於 en-US,這些時段為 morning、noon、afternoon、evening 和 midnight。

Retrieves locale-specific day periods, which indicate roughly how a day is broken up in different languages. For example, for en-US, periods are morning, noon, afternoon, evening, and midnight.

檢視"說明"...

      
      getLocaleExtraDayPeriods(locale: string, formStyle: FormStyle, width: TranslationWidth): string[]
    
引數
locale string

用於要使用的語言環境格式規則的語言環境程式碼。

A locale code for the locale format rules to use.

formStyle FormStyle

所需的語法形式。

The required grammatical form.

width TranslationWidth

所需的字元寬度。

The required character width.

返回值

翻譯後的一天時段字串。

string[]: The translated day-period strings.

參見

說明

僅當你載入了完整的語言環境資料時,此功能才可用。請參閱 “I18n 指南”

This functionality is only available when you have loaded the full locale data. See the "I18n guide".