harsh-harlequin
harsh-harlequin15mo ago

How to change/inactivate the automatic plural with the "s" added in the end ?

When I add new pages with inferencer in "App.tsx" I noticed that Refine automatically add an "s" at the end of the page name. How can I change or inactivate this option?
5 Replies
kapa.ai
kapa.ai15mo ago
Hey @ging_freecs! I'm the kapa.ai support bot. I've searched through the docs to try to answer your question. :wave:
kapa.ai
kapa.ai15mo ago
---------------------- Hmm, I don't know enough to give you a confident answer yet. Please refer to the Refine documentation (https://refine.dev/docs/tutorial/adding-crud-pages/headless/add-create-page) for more information. ----------------------
4. Adding Create Page | refine
Create page is the page where you can create the record. In this tutorial, we will create the create page for the products resource.
kapa.ai
kapa.ai15mo ago
<@296624290843983873> kapa.ai is still learning and improving, please let us how it did by reacting below
other-emerald
other-emerald15mo ago
Hi @ging_freecs , can you try this ? refine@3
<Refine
resources={[
{
name: 'posts',
list: HeadlessInferencer,
options: {
label: 'Post',
},
},
]}
/>
<Refine
resources={[
{
name: 'posts',
list: HeadlessInferencer,
options: {
label: 'Post',
},
},
]}
/>
refine@4
<Refine
resources={[
{
name: 'posts',
list: HeadlessInferencer,
meta: {
label: 'Post',
},
},
]}
/>
<Refine
resources={[
{
name: 'posts',
list: HeadlessInferencer,
meta: {
label: 'Post',
},
},
]}
/>
harsh-harlequin
harsh-harlequin15mo ago
Thank you very much @alicanerdurmaz ! It works!