api-platform / api-platform/admin
Allow Dash Operation Naming Strategy
- Dominant language
- TypeScript
- Stars
- 516
- Forks
- 134
- PR merge metrics
- No merged PRs in 30d
Description
When you use the dash operation naming strategy, react-admin fails to properly inflect the resource name into a nicely formatted name.
if the resource name is `air-door-event`, react admin will format it as `Air-door-event`.
I've been able to customize the menu links using this following snippet when formatting the name:
```
inflection.titleize(inflection.humanize(inflection.pluralize(name).replace(/-/g, "_")));
```
Curious if this is something we should add as a cookbook doc so that people can optionally customize, or if api-platform/admin should just override the layout/menu to use the above instead of their default inflection.
Contributor guide
Assessment
This issue has not been assessed yet.