Skip to content

SetRegion

Defines the region to use when localizing the application display. SetRegion only affects formatting, e.g. date and number formats. It is different from the region specifier in SetLanguage.

Does not change the device region settings. The properties defined in Action are also applicable to this action.

SetRegion Properties

Property Type Required
Region string Required
_Type const Required

Region

The region code to be set.

  • type: string

Region Examples

"US"
"UK"
"CA"
"HK"

_Type

  • type: const

The value of this property must be equal to:

"Action.Type.SetRegion"

Action Result

Refer to the MDK Guide to understand what an action result is.

The success ActionResult of this action is the set region. The failure ActionResult is an error message.