Hi Genni,
Thanks for contacting Syncfusion support.
Sorry for the inconvenience caused and we have checked your query and “ApplicationNamespace” is the namespace of the application. For example, if our application name is “BlazorApp” then we should use this. We have also prepared a sample for your reference that you can download from the below link.
We request you to share more illustrative information such as video, screenshot if we misunderstood your query.
Please get back to us if you need any further assistance on this.
Regards,
Jesus Arockia Sankaran S
Hi Team,
I have tried the
sample, but it seems still something abnormal. Within the original code, I added two other components to show the local effects but failed. Here is what I did:
1. added "new CultureInfo("zh")" to supportedCultures in Startup.cs line 42;
2. added "<option value="zh">Chinese</option>" in CultureChooser.razor line 13 and "new CultureData() { Text = "Chinese", Value = "zh" }" at line 45;
3. added two components of SfSchedule and SfGrid, the former from another
post and the latter from the Guide. For details of this source, please refer to the attachment.
Recompiled completely and run, then Issue occurred. Whatever culture I select, except eu-US, error reported in brower console:
[2020-04-17T02:27:11.703Z] Information: Normalizing '_blazor' to 'https://localhost:5001/_blazor'.
blazor.server.js:1 [2020-04-17T02:27:11.801Z] Information: WebSocket connected to wss://localhost:5001/_blazor?id=wgmdqnzEuAruZQcIu9LmXw.
syncfusion-blazor.js:826 Cannot read property 'trim' of undefined
TypeError: Cannot read property 'trim' of undefined
at Week.ViewBase.formatDateRange (https://localhost:5001/ej2.min.js:588260:41)
at Week.ViewBase.getDateRangeText (https://localhost:5001/ej2.min.js:588231:21)
at Render.updateHeader (https://localhost:5001/ej2.min.js:580199:77)
at Render.initializeLayout (https://localhost:5001/ej2.min.js:580179:14)
at Render.render (https://localhost:5001/ej2.min.js:580100:14)
at Schedule.initializeView (https://localhost:5001/ej2.min.js:582836:27)
at Schedule.renderElements (https://localhost:5001/ej2.min.js:582664:14)
at Schedule.initializeResources (https://localhost:5001/ej2.min.js:582646:18)
at Schedule.render (https://localhost:5001/ej2.min.js:582478:14)
at Schedule.Component.appendTo (https://localhost:5001/ej2.min.js:6537:18)
throwError @ syncfusion-blazor.js:826
initialize @ syncfusion-blazor.js:133
(anonymous) @ blazor.server.js:8
beginInvokeJSFromDotNet @ blazor.server.js:8
(anonymous) @ blazor.server.js:1
e.invokeClientMethod @ blazor.server.js:1
e.processIncomingData @ blazor.server.js:1
connection.onreceive @ blazor.server.js:1
i.onmessage @ blazor.server.js:1
The only changed is currency symbol and all other texts were not localized. It seems the sample only works fine with SfCalendar.
Could you please check what's the matter with this?
Attachment:
ServerLocalizationResxIssue_89bfb3c1.zip