I’ve created a form on my website and specified a label with gettext_lazy
.
But it turns out the label is not capitalized. I wanted to call .capitalize()
method (because VS Code advised it), but then it will always generate text in English. (I event though to make an issue after that, but there is an answer)
I saw on StackOverflow somewhere that when you call a string method on a lazy string it looses the laziness and the operation is immediately performed.
So, how would I capitalize a string from gettext_lazy
? I can’t change the translation string from lowercase to capitalized.