Interface IRVLocalizationService
The interface that must be implemented and returned by IRVLocalizationProvider in order to be able to localize dashboard data and modify the formatting settings for a specific fields.
Namespace: Reveal.Sdk
Assembly: Reveal.UI.Sdk.dll
Syntax
public interface IRVLocalizationService
Methods
GetFormattingSettingsForField(String, RVDashboardDataType, RVFormattingSpec, Boolean)
Returns the formatting settings to be used for specific field and parameters.
Declaration
RVFormattingSpec GetFormattingSettingsForField(string fieldName, RVDashboardDataType dataType, RVFormattingSpec currentSettings, bool isAggregated)
Parameters
Type | Name | Description |
---|---|---|
System.String | fieldName | The name of the field |
RVDashboardDataType | dataType | The data type of the field |
RVFormattingSpec | currentSettings | The original formatting settings for the field |
System.Boolean | isAggregated | The flag indicating if the passed field has aggregation |
Returns
Type | Description |
---|---|
RVFormattingSpec | The new formatting settings |
GetLocalizedString(String, RVLocalizationElementType)
Returns the localized string for a given text and element type.
Declaration
string GetLocalizedString(string originalValue, RVLocalizationElementType elementType)
Parameters
Type | Name | Description |
---|---|---|
System.String | originalValue | The original text of the element |
RVLocalizationElementType | elementType | The type of the element |
Returns
Type | Description |
---|---|
System.String | The localized version of the text |