How to remove plural noun when using custom label in resources ? (Inferencer)
I have a resource with label "Manajemen Pengguna" but on the page, Inferencer automatically convert the label into plural noun.
Here is my code
![No description](https://cdn.answeroverflow.com/1159254247003668540/image.png)
4 Replies
Hi @regnregn. I'm kapa.ai, your friendly support bot. I will try to answer your question by searching through the knowledge base. :wave:
----------------------
In refine, the
label
property in the meta
object of a resource is used to customize the name shown in the menu. By default, refine uses the plural form of the resource name. However, when you provide a label
, it should override the default name.
Your code seems correct. The label
"Manajemen Pengguna" should appear as is in the menu. If it's not behaving as expected, it might be a bug or there could be some other code interfering with this setting.
Here is the relevant documentation for further reference: Refine Config (https://refine.dev/docs/api-reference/core/components/refine-config/)
If the issue persists, I would recommend reaching out to the refine community or support for further assistance.
----------------------
Note: you can ask me a follow up question by @ mentioning me again :speech_balloon:
----------------------<@336843331416096768> kapa.ai is still learning and improving, please let us know how it did by reacting below
absent-sapphire•12mo ago
Hello @regnregn you can use custom textTransformer for that https://refine.dev/docs/api-reference/core/components/refine-config/#texttransformers
| refine
`` component is the entry point of a refine app. It is where the highest level of configuration of the app occurs.
stormy-gold•12mo ago
Thanks for the reply!