Globalization in Blazor Linear Gauge Component
30 Aug 20211 minute to read
The localization allows to localize the default text content in the Blazor component. For more information about localization, refer here.
Globalization is the process of designing and developing a component that works in different cultures. Internationalization is used to globalize the number content in Linear Gauge component using Format property in SfLinearGauge. It has static text on some features such as
- Axis label
The static text on above features can be changed to any culture such as Arabic, Deutsch and French.
The text in axis labels and tooltip can be displayed in the numeric format such as currency, percentage and so on. To know more about the numeric formats in axis labels, refer here. In the below example, the axis label is displayed in the currency format.
@using Syncfusion.Blazor.LinearGauge <SfLinearGauge Format="c"> <LinearGaugeAxes> <LinearGaugeAxis> <LinearGaugePointers> <LinearGaugePointer></LinearGaugePointer> </LinearGaugePointers> </LinearGaugeAxis> </LinearGaugeAxes> </SfLinearGauge>