N
Nuxtβ€’2y ago
Romi

Api Uppercase or not :?

Hey not realy dicrect with Nuxt, but should api body data like status have capital letter:
{
"status": "New"
}
{
"status": "New"
}
or
{
"status": "new"
}
{
"status": "new"
}
feel like the secound option is the way but then how do we uppcease the first letter xD in the front end
1 Reply
Mole
Moleβ€’2y ago
text-transform: capitalize;
text-transform: capitalize;
πŸ˜‰ I am team { status: 'NEW' } btw, which comes from enum Status { NEW = 'NEW' } and is then localized with $t(`enum.status.${value}`) to "Neu" in german πŸ˜…
Want results from more Discord servers?
Add your server