Capitalization depends on the language of the text. Pass the intended locale at the boundary where a display label is created.
Worked example
console.log("istanbul".toLocaleUpperCase("tr"));Result
İSTANBULImplementation notes
Keep case conversion out of database identity rules unless all participants share the same normalization policy. A label can change length during conversion.
Try it yourself
Compare the uppercase form of i in Turkish and English.
Open the JavaScript example →Editorial date June 22, 2026 · Published December 6, 2026