Share via


PromptCultureModel interface

Represents a culture-specific model that defines localization settings for prompts. This interface provides language-specific formatting rules and translations for interactive prompts such as choice lists and confirmation dialogs.

Properties

inlineOr

The conjunction string used before the final item in a two-item list.

Example

" or " // English: "apple or banana"

Example

" ou " // French: "pomme ou banane"

Example

" または " // Japanese: "りんご または バナナ"
inlineOrMore

The conjunction string used before the final item in a list of three or more items.

Example

", or " // English: "apple, banana, or orange"

Example

", ou " // French: "pomme, banane, ou orange"

Example

"、 または " // Japanese: "りんご、 バナナ、 または オレンジ"
locale

The locale identifier for this culture model.

Example

"en-US" // English (United States)

Example

"fr-FR" // French (France)

Example

"ja-JP" // Japanese (Japan)
noInLanguage

The negative response word in the target language.

Example

"No" // English

Example

"Non" // French

Example

"いいえ" // Japanese
separator

The separator string used to delimit items in a list when presenting choices.

Example

", " // English: "apple, banana, orange"

Example

"、 " // Japanese: "りんご、 バナナ、 オレンジ"
yesInLanguage

The affirmative response word in the target language.

Example

"Yes" // English

Example

"Oui" // French

Example

"はい" // Japanese

Property Details

inlineOr

The conjunction string used before the final item in a two-item list.

Example

" or " // English: "apple or banana"

Example

" ou " // French: "pomme ou banane"

Example

" または " // Japanese: "りんご または バナナ"
inlineOr: string

Property Value

string

Remarks

This is used when presenting exactly two choices to the user.

inlineOrMore

The conjunction string used before the final item in a list of three or more items.

Example

", or " // English: "apple, banana, or orange"

Example

", ou " // French: "pomme, banane, ou orange"

Example

"、 または " // Japanese: "りんご、 バナナ、 または オレンジ"
inlineOrMore: string

Property Value

string

Remarks

This combines with the separator to create properly formatted choice lists.

locale

The locale identifier for this culture model.

Example

"en-US" // English (United States)

Example

"fr-FR" // French (France)

Example

"ja-JP" // Japanese (Japan)
locale: string

Property Value

string

Remarks

This follows the standard IETF language tag format (e.g., "en-US", "fr-FR", "ja-JP"). Used to identify the target language and region for localization.

noInLanguage

The negative response word in the target language.

Example

"No" // English

Example

"Non" // French

Example

"いいえ" // Japanese
noInLanguage: string

Property Value

string

Remarks

Used in confirmation prompts and boolean choice scenarios.

separator

The separator string used to delimit items in a list when presenting choices.

Example

", " // English: "apple, banana, orange"

Example

"、 " // Japanese: "りんご、 バナナ、 オレンジ"
separator: string

Property Value

string

Remarks

This is typically used between items in the middle of a list, not before the final item.

yesInLanguage

The affirmative response word in the target language.

Example

"Yes" // English

Example

"Oui" // French

Example

"はい" // Japanese
yesInLanguage: string

Property Value

string

Remarks

Used in confirmation prompts and boolean choice scenarios.