Skip to content

SetLanguage

Defines the language to use when localizing the application display. Since regions have variations in a language, it may contain a region specifier, e.g. "fr_CA".

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

SetLanguage Properties

Property Type Required
Language string Required
_Type const Required

Language

The language code to be set

  • type: string

Language Examples

"en"
"de"
"fr_CA"
"zh_HK"

_Type

  • type: const

The value of this property must be equal to:

"Action.Type.SetLanguage"

Action Result

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

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