Globalization of "Columns" in Grid

1 Answer 116 Views
Grid
Bernd
Top achievements
Rank 5
Bronze
Bronze
Bronze
Bernd asked on 17 May 2022, 01:57 PM

I have added the Globalization and IntlProvider to the Grid and it works but for the Column options there is one entry missing in the documentation and that's the "Columns" entry (see screenshot). Is there a possibility to add a translation for this item?

 

1 Answer, 1 is accepted

Sort by
1
Accepted
Konstantin Dikov
Telerik team
answered on 19 May 2022, 10:07 AM

Hi Bernd,

Thank you for reaching out to us.

The "Columns" string in question is defined explicitly in the custom column menu and the "GridColumnMenuItem" in particular. It is possible to use our localization and add the Columns to the messages that then can be set as "title" for the "GridColumnMenuItem":

For your convenience, I have prepared an example demonstrating how you can include this in your project:

  const localization = useLocalization();
  return (
    <div>
      ....
      <GridColumnMenuItemGroup>
        <GridColumnMenuItem
          title={localization.toLanguageString('ColumnsKey', 'Columns')}

const messagesObjEs = {
  ColumnsKey: 'Columnas',
};

loadMessages(messagesObjEn, language);
loadMessages(messagesObjEs, 'es');

Hope this helps.

 

Regards,
Konstantin Dikov
Progress Telerik

Love the Telerik and Kendo UI products and believe more people should try them? Invite a fellow developer to become a Progress customer and each of you can get a $50 Amazon gift voucher.

Tags
Grid
Asked by
Bernd
Top achievements
Rank 5
Bronze
Bronze
Bronze
Answers by
Konstantin Dikov
Telerik team
Share this question
or