Singular resource name
I'm looking for a way to set a resource name that is not pluralized, like
dashboard singular. It should have singular names for menu itemdashboardtextTransformers option in refine to customize the transformation of the resource name displayed on the user interface. By default, if you define a resource named posts, refine will display it as Posts. However, you can disable this transformation by setting the textTransformers option as shown in the example below:humanize, plural, and singular functions are set to return the input text as is, effectively disabling any transformation. You can adjust these functions to suit your needs.Note: you can ask me a follow up question by @ mentioning me again label?
textTransformerstextTransformerspostsPostshumanizepluralsingularNote: you can ask me a follow up question by @ mentioning me againlabelconst App: React.FC = () => (
<Refine
// ...
options={{
textTransformers: {
humanize: (text) => text,
plural: (text) => text,
singular: (text) => text,
},
}}
/>
);