Skip to content

SetLanguage

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

This does not impact the device language. All the properties defined under Action are applicable to this action.

SetLanguage Properties

Property Type Required
Language string Yes
_Type const Yes

Language

The language code to be set.

Examples: "en", "de", "fr_CA", "zh_HK"

  • type: string

_Type

  • type: const

The value of this property must be:

"Action.Type.SetLanguage"

Action Result

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

When this action gets executed successfully, the ActionResult is ideally the set language, otherwise it’s an error message.