Service: UX

Accessing UX resources (e.g., images and translations)

Provides access to data resources used for the UI, like language dictionaries and images.

Functions

ResultName / ParamsComment
string[]ux.GetAvailableLanguagesReturns the list of all available language codes.
LanguageDesc[]ux.GetLanguageDescReturns the list of all available language descriptions.
LanguageData[]ux.GetLanguageDataGets the language data of all languages defined by the request.
namespacesstring[](Optional) Identifier of the language data that shall be returned. If it is empty, everything is returned. Values are WinGuard, @User, <‍Extension‍>, where <‍Extension‍> is the Localizer namespace of an Extension language resource. The @User data contains all overwritten language IDs, merging them is up to the API user.
languagesstring[](Optional) The list of languages to return. If it is empty, all languages are returned.
boolux.SetLanguageDataUpdates user language data.
languagesLanguageData[]Overwrite the user language data with the given data. Namespace must be @User. Language IDs can be overwritten by prefixing the namespace in the Id of the corresponding LanguageDataEntry.
LanguageDataux.GetLanguageDictionaryRequests the language dictionary for the given language code. The language is extended with user and system resources.
languagestringLanguage code of the dictionary to return.
string[]ux.GetAvailableThemesReturns the keys of all available themes.
ThemeDataux.GetThemeDataGets the data of the current CST theme selected in WinGuard.
itemsstring[](Optional) A list of item types that shall be returned (colors, images, props). If it is empty, everything is returned.
id ≥wg.core 0.0.3string(Optional) Theme ID (arctic, light_grey, ...).

Notifications

Name / ParamsComment
ux.LanguageDataUpdatedNotifies change of current language.
idstringLanguage code (de, en, ...).
ux.LanguageDictionaryUpdated
languagestringCode of the language that was updated.
ux.ThemeDataUpdatedNotifies change of current theme.
idstringTheme ID (arctic, light_grey, ...).

Objects

LanguageData

Property Type Description
Namespace string Namespace of the language (WinGuard, @User, <‍Extension‍>).
LngId string Language code (de, en, …).
IsRtl bool Flag indicating whether the language is RightToLeft.
Dictionary LanguageDataEntry[] Language strings, identified by their string ID.

LanguageDataEntry

Property Type Description
Id string ID of the language string.
Value string Localized string.

ThemeData

Property Type Description
Colors string{} CST color IDs with their corresponding colors as hex color strings (e.g. #FF00FF).
Images ImageData[] CST images with metadata, identified by their string IDs.
Props value{} Special properties to modify CST values.

ImageData

Property Type Description
Id string ID of the image.
Width int Width in pixel.
Height int Height in pixel.
Data data Base64 encoded image data (usually PNG).

LanguageDesc

Property Type Description
Code string Language code.
Name string Localized name of the language.
Symbol string Language symbol.
Last modified September 25, 2026