Localization to Blazor Syncfusion controls

Dear Support,
We would like to provide our own localization to all Blazor controls. We found out that we will have to implement ISyncfusionStringLocalizer and provide our own implementation of ResourceManager. Although we got it working, some of the controls like Scheduler have some strings that are not getting localized by the Resource Manager (for example the names of the weekdays). Could you please share with us what is the best approach we should follow in order to achieve what we are looking forward to.

5 Replies 1 reply marked as answer

AK Alagumeena Kalaiselvan Syncfusion Team June 5, 2020 03:13 PM UTC

Hi Stephanie, 
  
Thanks for contacting Syncfusion support. 
  
We have validated your case “Scheduler week days not getting localized” and you can applied localization for specified Scheduler fields which are available in resource file alone. Also, we have processed the  Scheduler week days  based on corresponding locale and you can change weekdays by using Scheduler template option. Refer the below link for that. 
 
Kindly get back to us, If you need further assistance. 
  
Regards 
Alagumeena.K   



AT Andrej Terkaj February 6, 2021 05:47 PM UTC

Dear Alagumeena !

In your demo I change to Franche-Swiss language. I still got english names of days (see Sun, Mon, Tue ... above weather icons).
I try with other localization (german, Croatian). Same situation ... 
Are there missing a resource entries in resx files ?

TIA, Andrej Terkaj 





NR Nevitha Ravi Syncfusion Team February 8, 2021 11:15 AM UTC

Hi Andrej, 

Greetings from Syncfusion Support. 

In the shared demo sample, we have used CultureInfo as InvariantCulture due to that the culture is retained from system. We can achieve your requirement ‘change the date header text based on culture’ by using CultureInfo as CurrentCulture. Please refer to the following sample in which date header text will change based on the changed locale. 
 
    public static string getDateHeaderText(DateTime date) 
    { 
        return date.ToString("dd ddd", CultureInfo.CurrentCulture); 
    } 
 
 
 
 
Please try the above solution and let us know if you need any further assistance. 
 
Regards, 
Nevitha 


Marked as answer

AT Andrej Terkaj February 11, 2021 12:39 AM UTC

Dear Nevihta !
Thank you. Each day I know little more ....
Best Regards Andrej


VD Vinitha Devi Murugan Syncfusion Team February 11, 2021 09:58 AM UTC

Hi Andrej, 

Thanks for your update. 

You are most welcome 😊 

Regards, 
Vinitha  


Loader.
Up arrow icon