Hi,
I have a GridComponent on multiple pages and want different labels depending on the page. To my knowledge when I use L10n.load the labels are used in every component so how can I do what I want to do?
Hi Ismail,
Thanks for contacting Syncfusion support.
Before proceeding with your query, kindly share the below details to provide a better solution.
Regards,
Rajapandiyan S
I found the solution but maybe there's a better solution you can suggest.I want to change the specific default text I have two grid components but I want each one to have different translated labels.
My solution was to call the load function only once in my App.js and update only the content of the parameter to pass to the function depending on the route I'm in.
Hi Ismail,
kindly share the below details to provide a better solution.
Regards,
Rajapandiyan S
I'm trying to change the default text of Grid's pager. One grid should have in the pager "users" instead of "items", the second grid pager should have "mentors" instead of "items"
Hi Ismail,
Currently, we are validating the attached files to achieve your requirement (I'm trying to change the default text of Grid's pager. One grid should have in the pager "users" instead of "items", the second grid pager should have "mentors" instead of "items") at our end. We will provide further details on or before June 28th, 2022.
We appreciate your patience until then.
Regards,
Rajapandiyan S
Hi Ismail,
Thanks for your patience.
We have prepared a simple sample with your code example. You can get it from the below link,
Sample: https://stackblitz.com/edit/react-router-starter-ladvgz?file=components%2FAbout.js
If you want to dynamically change the culture in the same Grid, we suggest you to use setCulture method to achieve this.
https://ej2.syncfusion.com/react/documentation/grid/global-local/#internationalization
|
culture = culture == 'fr-FR' ? 'en-US' : 'fr-FR'; setCulture(culture); // change the culture for all the Syncfusion components }
|
Please let us know if you have any concerns.
Regards,
Rajapandiyan S