React-data-grid: how translate buttons

Created on 25 May 2018  路  5Comments  路  Source: adazzle/react-data-grid

Hello,

how translate buttons "filter rows" and others ???

Question

Most helpful comment

There is no built it support for translations at the moment. You can however customize Toolbar and pass custom text props

toolbar={<Toolbar enableFilter={true} [filterRowsButtonText](url)={translate('FilterRow')}/>}

For Search you can specify a custom column.filterRenderer and customize the text.

All 5 comments

@amanmahajan7 any solution?

There is no built it support for translations at the moment. You can however customize Toolbar and pass custom text props

toolbar={<Toolbar enableFilter={true} [filterRowsButtonText](url)={translate('FilterRow')}/>}

For Search you can specify a custom column.filterRenderer and customize the text.

@amanmahajan7 you have example to search?

@amanmahajan7 i not have idea to translate search field, you have any example for this??

@amanmahajan7 thanks for the solution workds perfectly :ok_hand: . One thing though the searchable fields are still not translated and that I suppose will be slightly more difficult to deal with. (and possibly the only solution is to get a custom Toolbar going)

image

Was this page helpful?
0 / 5 - 0 ratings

Related issues

alvaro1728 picture alvaro1728  路  4Comments

soma83 picture soma83  路  4Comments

Suprit-S-M picture Suprit-S-M  路  4Comments

oliverwatkins picture oliverwatkins  路  4Comments

JordanBonitatis picture JordanBonitatis  路  4Comments