Skip to content

[data grid] Missing translation for key headerFilterOperatorBetween #13217

Closed
@ankurheble

Description

@ankurheble

Steps to reproduce

Link to live example: (required)
https://codesandbox.io/p/sandbox/nostalgic-pascal-9twstk?file=%2Fsrc%2FDemo.tsx%3A141%2C22
Steps:

  1. Try to implement Multiple values filter as mentioned in the docs here https://mui.com/x/react-data-grid/filtering/customization/ by clicking on the codesandbox example
  2. Inside codesandbox install @mui/x-data-grid-pro latest version
  3. Enable Header Filters for the DataGridPro which has already got the custom quantity filter mentioned in above example.

Missing translation for key headerFilterOperatorBetween. is shown
image

Current behavior

Throws an error : Missing translation for key headerFilterOperatorBetween.
image

Expected behavior

Should use the same translation added for the custom operator.

Context

Trying to implement a multiple values operator for column type number in DataGridPro with headerFilters enabled.

Your environment

npx @mui/envinfo System: OS: Windows 11 10.0.22631 Binaries: Node: 20.11.1 - C:\Program Files\nodejs\node.EXE npm: 10.2.4 - C:\Program Files\nodejs\npm.CMD pnpm: Not Found Browsers: Brave Browser: Chromium (125.0.6422.60) Edge: Chromium (123.0.2420.97) npmPackages: @emotion/react: ^11.11.4 => 11.11.4 @emotion/styled: ^11.11.0 => 11.11.0 @mui/base: 5.0.0-beta.40 @mui/core-downloads-tracker: 5.15.18 @mui/icons-material: ^5.15.13 => 5.15.13 @mui/material: ^5.15.12 => 5.15.18 @mui/private-theming: 5.15.14 @mui/styled-engine: 5.15.14 @mui/styled-engine-sc: ^6.0.0-alpha.17 => 6.0.0-alpha.17 @mui/system: 5.15.15 @mui/types: 7.2.14 @mui/utils: 5.15.14 @mui/x-data-grid: ^7.5.0 => 7.5.0 @mui/x-data-grid-pro: ^7.5.0 => 7.5.0 @mui/x-license: ^7.2.0 => 7.2.0 @types/react: ^18 => 18.2.62 react: ^18 => 18.2.0 react-dom: ^18 => 18.2.0 styled-components: ^6.1.8 => 6.1.8 typescript: ^5 => 5.3.3

Search keywords: data grid pro, header filters, translation error
Order ID: 90421

Metadata

Metadata

Assignees

No one assigned

    Labels

    feature: Filtering on headerRelated to the header filtering (Pro) featurescope: data gridChanges or issues related to the data grid producttype: bugA bug or unintended behavior in the components.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions