Skip to content

Commit

Permalink
Merge pull request #8657 from marmelab/docs-fix-translatechoice
Browse files Browse the repository at this point in the history
[Doc] Improve CheckboxGroupInput translateChoice code example
  • Loading branch information
slax57 authored Feb 15, 2023
2 parents 22900e6 + 87ce652 commit 9cc2705
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions docs/CheckboxGroupInput.md
Original file line number Diff line number Diff line change
Expand Up @@ -234,10 +234,10 @@ The choices are translated by default, so you can use translation identifiers as

```jsx
const choices = [
{ id: 'admin', label: 'myroot.roles.admin' },
{ id: 'u001', label: 'myroot.roles.u001' },
{ id: 'u002', label: 'myroot.roles.u002' },
{ id: 'u003', label: 'myroot.roles.u003' },
{ id: 'admin', name: 'myroot.roles.admin' },
{ id: 'u001', name: 'myroot.roles.u001' },
{ id: 'u002', name: 'myroot.roles.u002' },
{ id: 'u003', name: 'myroot.roles.u003' },
];
```

Expand Down

0 comments on commit 9cc2705

Please sign in to comment.