sensitive-blue
sensitive-blue8mo ago

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
{
name: "user",
list: "/user",
show: "/user/show/:id",
create: "/user/create",
edit: "/user/edit/:id",
meta: {
label: "Manajemen Pengguna",
icon: <UserOutlined />
}
},
{
name: "user",
list: "/user",
show: "/user/show/:id",
create: "/user/create",
edit: "/user/edit/:id",
meta: {
label: "Manajemen Pengguna",
icon: <UserOutlined />
}
},
No description
4 Replies
kapa.ai
kapa.ai8mo ago
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: ----------------------
kapa.ai
kapa.ai8mo ago
<@336843331416096768> kapa.ai is still learning and improving, please let us know how it did by reacting below
eastern-cyan
eastern-cyan8mo 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.
sensitive-blue
sensitive-blue8mo ago
Thanks for the reply!