N
Nuxtβ€’17mo 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β€’17mo 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