Class: NoopLocalizationEngine
A no-operation localization engine that provides empty implementations. Used when localization is not needed or as a fallback.
Implements
Constructors
Constructor
new NoopLocalizationEngine(
locale?):NoopLocalizationEngine
Parameters
locale?
`${string}-${string}`
Returns
NoopLocalizationEngine
Inherit Doc
Accessors
language
Get Signature
get language():
`${string}-${string}`
The current language.
Returns
`${string}-${string}`
Set Signature
set language(
locale):void
The current language.
Parameters
locale
`${string}-${string}`
Returns
void
The current language.
Implementation of
Methods
addMessages()
addMessages():
never[]
Adds messages to the localization engine.
Returns
never[]
the array of any localization errors that occurred.
Implementation of
ILocalizationEngine.addMessages
getCompatibleId()
getCompatibleId(
rawId):string
Gets a compatible ID for localization engine.
Parameters
rawId
string
the raw ID to make compatible.
Returns
string
the compatible ID.
Implementation of
ILocalizationEngine.getCompatibleId
localizeErrorMessage()
localizeErrorMessage():
undefined
Localizes error messages for validation rules.
Returns
undefined
the localized error message or undefined.
Implementation of
ILocalizationEngine.localizeErrorMessage
localizeProperties()
localizeProperties():
object
Localizes properties for a component.
Returns
object
the object with localized property values.