Closed osterkraft closed 7 months ago
This is great! Thanks for pulling this together! Would be great to add a user prompt (at some point in the future) where users are presented the singular version and can confirm it is correct or update it.
Thanks again 😄
Thanks for great work on this awesome project @nicoalbanese! This PR addresses an issue with the current singular and plural conversions in the codebase. For instance, creating a
categories
entity currently results in files likeCategorieList.tsx
being generated, and leading to inconsistent and often incorrect naming conventions of files, fields and variables.I propose integrating the
pluralize
library to resolve this. I've done some basic testing with drizzle and prisma and I haven't run into any issues with this yet. However, further testing is likely needed.An alternative approach could involve requesting both singular and plural forms via CLI. However, this increases the steps required for input, making the process more cumbersome.
Feedback and suggestions, especially regarding testing and implementation, are highly appreciated.