Problem with localization using SfUploader

Hello,
I modified a bit the sample Blazor_latest_152997_uploader-1743998774.zip because I have problems with localization using SfUploader.

The first time the Index is open, texts are not translated.
When I choose a file, it is uploaded properly.

Then I switch to page Counter and back to Index. I can see translated "#Or drop files here" (I added '#' to see a difference). Unfortunately the button "Browse..." is not translated.
But in this run, the file is not uploaded and a message comes up "File type is not allowed". Which text is also not translated.

I installed the latest Syncfusion.Blazor 18.1.0.53. However the original sample behaves similarly about translations.

I attach my modified sample project.
Please check what could it be.
Best regards

Attachment: Blazor_uploader_locale_88faf5f1.rar

10 Replies

SN Sevvandhi Nagulan Syncfusion Team May 25, 2020 05:40 AM UTC

Hi Andrzej, 


Greetings from Syncfusion support. 

In the latest version, we changed the culture loading on both the sever side and the client side. Kindly refer the below documentation link, 



You can also modify your culture code and definition. 


Regards, 
Sevvandhi N 



AN Andrzej May 25, 2020 10:28 AM UTC

Hello, I tried the sample ServerLocalizationResx-1823306640  without any changes and it doesn't work correctly. Sometimes after opening the page I get all text translated (ok2.jpg) and sometimes not (err1.jpg). Do you have any idea what could be the reason?

Attachment: localization_b18a537d.rar


AN Andrzej May 25, 2020 01:27 PM UTC

Hello again. As mentioned before, I couldn't get the sample ServerLocalizationResx-1823306640 working properly. So I got back to my previously uploaded sample Blazor_uploader_locale_88faf5f1.rar. Then I changed only one text into an original value leaving others modified. The text readyToUploadMessage was changed from my "#Ready to upload" to an original one "Ready to upload". And then the uploading worked properly again! The message "File type is not allowed" doesn't appear anymore.
Maybe this could be some hint to problems with localization of SfUploader?
BTW. I wonder what is the reason to do now the localization of SfUploader in such complicated way when other components are so easy to be modified just by using LoadLocaleData?


SN Sevvandhi Nagulan Syncfusion Team May 26, 2020 10:47 AM UTC

Hi Andrzej, 


Thanks for the update.  


In our sample given, we tested the reported problem. In our case, it could not reproduce. The problem is due to cache problems or slow network performance or slow chrome performance. Please try clearing the cache and check the sample in the incognito window. If there is still a problem, please provide a video demonstration of the reported issue 

Additionally, LoadLocaleData can be used for culture loading in the Client side application. There is a server side application in the shared application, and you used the client side localization configuration to set the culture. So,you need to use the configuration below in the server side localization application. 


Please find the UG documentation below, 






Regards, 
Sevvandhi N 



AN Andrzej May 26, 2020 06:03 PM UTC

Thanks for the info. Maybe there is really something about the slow reaction of the server. Is there an event which I could use to force the localization to be sure all is finally rendered and can be translated?

Anyway, there is a bigger problem. In previous sample, I added a saving of the file to the folder "D:\". The problem is that the uploading is always broken and the file has length = 0. This doesn't occur without localization. I attach this slightly modified sample. Please check if this is my fault or the package's?

I also have a question about the flag Locale="ru-RU". It doesn't matter if it is there or not, the texts are always in Russian. So does this flag mean anything in definition of SfUploader? 

Best regards
Andrzej

Attachment: ServerLocalizationResx1823306640mod_6cd7f74a.rar


SN Sevvandhi Nagulan Syncfusion Team May 27, 2020 11:49 AM UTC

Hi Andrzej, 




Query 1: Thanks for the info. Maybe there is really something about the slow reaction of the server. Is there an event which I could use to force the localization to be sure all is finally rendered and can be translated? 

Response

we don't have any events when they are completely localized locally. 

Query 2: Anyway, there is a bigger problem. In previous sample, I added a saving of the file to the folder "D:\". The problem is that the uploading is always broken and the file has length = 0. This doesn't occur without localization. I attach this slightly modified sample. Please check if this is my fault or the package's? 


Response


The reported issue was resolved in the latest version (V18.1.54). Please upgrade the application to the latest version to get rid of the problem. 


Query 3: I also have a question about the flag Locale="ru-RU". It doesn't matter if it is there or not, the texts are always in Russian. So, does this flag mean anything in definition of SfUploader?  


Response



We would like to inform you that if we have made some configuration for the localization in the startup.cs file and resource file description, it will be recognized by the locale property and translated into the corresponding culture. 


Regards, 
Sevvandhi N 



AN Andrzej May 27, 2020 04:59 PM UTC

Thanks, the upload works now in V18.1.54 and the file is transferred correctly. However the texts are doubled and displayed in both English and Russian language (please see an attached picture). It looks the same in both: the sample with updated package, and in my project which is still localized on client side.

Attachment: upl_err1__43c2c0f2.rar


SN Sevvandhi Nagulan Syncfusion Team May 28, 2020 11:26 AM UTC

Hi Andrzej, 
 
 
We considered the reported issue as bug at our end and this fix will be included in our June 3rd, 2020 patch release. We appreciate your patience until then. 
 
You can now track the reported issue from the below feedback link, 
 


Regards, 
Sevvandhi N 



AN Andrzej May 28, 2020 01:03 PM UTC

Thanks for the info, I will try it when ready.


SN Sevvandhi Nagulan Syncfusion Team May 29, 2020 04:28 AM UTC

Hi Andrzej, 


Thanks for the update. 

We appreciate your patience until the patch release has been rolled out. 

Regards, 
Sevvandhi N 


Loader.
Up arrow icon