Quantcast
Channel: Telerik Blogs
Viewing all articles
Browse latest Browse all 5210

Globalization in Blazor UI

$
0
0

We are here to help – since 2.4.0 Telerik UI for Blazor components have supported localized translations, and now with 2.5.0 we implemented the other part of the globalization feature – taking the CurrentCulture from the thread and using it to render the appropriate formats for dates and numbers.

For example, if the culture is de-DE, the user will see the Euro symbol from a number formatted as a currency in the NumericTextBox, but if the culture is en-US, they will see a $ sign.

blazor-currency-culture 

This also applies to dates – the default formats, month names, day names and so on are taken from the culture. You can see this all in one place in the DateTimePicker.

Here’s how this compares in the underlying DateInput – this screenshot is from the list of standard format strings from the Supported Formats.

blazor-standard-format-strings-with-culture 

Code Time

Or, rather, codeless time - there isn’t a single line of code you need to write for the Telerik components to support number and date formatting. We simply read the current thread culture that you set in your app.

What’s Next

In addition to adding major components and features, we are also working on general functionality that will affect the entire range. We have RTL support, Keyboard support (navigation) and Accessibility (such as WAI-ARIA and WCAG compliance) on our radar, and we are working on implementing these features as well. As usual, stay tuned!


Viewing all articles
Browse latest Browse all 5210

Trending Articles