Outputs a localized date in the specified format.
the date to format.
Optionaloptions: DateTimeFormatOptionsthe options to use when formatting the date.
Gets the host element's directionality as determined by the dir attribute. The return value is transformed to
lowercase.
Outputs a localized compounded time in a duration format.
the date to compare from.
OptionaltoDate: string | Datethe date to compare to, usually the current date (default: current date).
Optionaloptions: anythe options to use when formatting the time.
Gets the host element's language as determined by the lang attribute. The return value is transformed to
lowercase.
Outputs a localized number in the specified format.
the number or string to format.
Optionaloptions: NumberFormatOptionsthe options to use when formatting the number.
Translates a string containing one or more terms. The terms should be prefixed with a # character.
If the term is found in the localization set, it will be replaced with the localized term.
If the term is not found, the original term will be returned.
The text to translate.
The arguments to parse for this localization entry.
The translated text.
Outputs a translated term.
the localization key, the indicator of what localization entry you want to retrieve.
the arguments to parse for this localization entry.
Returns the localized term for the given key, or the default value if not found. This method follows the same resolution order as term() (primary → secondary → fallback), but returns the provided defaultValue instead of the key when no translation is found.
the localization key, the indicator of what localization entry you want to retrieve.
the value to return if the key is not found in any localization set.
the arguments to parse for this localization entry.
The UmbLocalizationController enables localization for your element.
See
UmbLocalizeElement
Example