Closed jezzsantos closed 2 years ago
This could be achieved in either Scriban inline functions or using a calculated property value whose ValueProvider does the calculation based on another property containing the name to be pluralised.
Define a couple of functions: pluralize
and singularize
using the library https://github.com/Humanizr/Humanizer
When rendering code, we need to be able to pluralise attribute values in the model