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 item4 Replies
Hi @anewman15. I'm kapa.ai, your friendly support bot. I will try to answer your question by searching through the knowledge base. :wave:
----------------------
You can use the
textTransformers
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:
In this example, the 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.
For more information, refer to the refine documentation (https://refine.dev/docs/api-reference/core/components/refine-config/).
----------------------
Note: you can ask me a follow up question by @ mentioning me again
:speech_balloon:
----------------------<@506108303659630602> kapa.ai is still learning and improving, please let us know how it did by reacting below
rival-black•13mo ago
Hey @anewman15 I don't quite understand what you are asking, can it be solved with
label
?rival-black•13mo ago
| refine
`` component is the entry point of a refine app. It is where the highest level of configuration of the app occurs.