Reference to a fallback of the same service or null if no fallback.
If the user needs to abandon this instance, they should use this to clean up active resources (like timers) and to release memory that would stall the garbage collector from disposing this object. It should assign any object reference to undefined as a strong indicator that the object has been disposed.
Returns the localized version of the text for the given culture. If nothing is matched, it returns the fallback text.
The cultureID.
Localization key, which is the text that identifies which word, phrase, or other block of text is requested. If null or '', no localization is requested.
Used when there was no match for the culture. Only supply '' if you are sure that registered data will always supply a value.
The localized text or the fallback text.
Localizes the given text with additional details. See localize() for more information.
The culture ID to match for localization.
The localization key.
The fallback text to use if localization fails.
An object containing the localized text, localization result, requested culture ID, and actual culture ID.
Attempts to get the localized error message for the ErrorCode and optional DataTypeLookupKey If dataTypeLookupKey is supplied and no match is found, it tries with just the ErrorCode.
same as ConditionType unless you set the ValidatorConfig.errorCode property
The error message or null if not available.
Attempts to get the localized Summary error message for the ErrorCode and optional DataTypeLookupKey If dataTypeLookupKey is supplied and no match is found, it tries with just the ErrorCode.
same as ConditionType unless you set the ValidatorConfig.errorCode property
The Summary error message or null if not available.
Registers a lookup key with the culture specific text. Replaces an already registered entry with the same l10nKey.
Localization key, which is the text that identifies which word, phrase, or other block of text is requested.
keys are language codes from cultureId, like 'en'. values are the actual text to output.
Utility to add an error message for a validator. The localization key (l10ntext) will use this pattern: 'EM-' + ErrorCode + '-' + DataTypeLookupKey 'EM-' + ErrorCode // this is a fallback
same as ConditionType unless you set the ValidatorConfig.errorCode property
optional.
Utility to add a summary error message for a validator The localization key (l10ntext) will use this pattern: 'SEM-' + ErrorCode + '-' + DataTypeLookupKey 'SEM-' + ErrorCode // this is a fallback
same as ConditionType unless you set the ValidatorConfig.errorCode property
optional.
Utility to add text representation of a data type associating it with its dataTypeLookupKey. The text is used with the {DataType} token in error messages. The localization key (l10ntext) will use this pattern: 'DTLK-' + DataTypeLookupKey
Generated using TypeDoc v0.25.12
A service to offer text alternatives to the default text based on cultureId.
It supports having fallbacks, so the app can have a standard implementation and another that introduces special cases.
To set that up: