Handlebar Helper Function: Propercase
Capitalizes the first letter of each word in a string and converts all other letters to lowercase.
| Parameter | Type | Description |
|---|---|---|
subject | string | Required. The string to convert to proper case. |
culture | string | A POSIX locale code for culture-specific case conversion, such as tr-TR. This parameter is helpful with Turkic languages in which the dotless capital letter I is converted to a dotless lowercase letter ı, as opposed to the lowercase letter i found in other Latin alphabets. The operation supports both hyphen (az-AZ) and underscore (az_AZ) formats. If you don't specify a culture code, the operation uses the current system culture. |
The operation returns the input string with the first letter of each word capitalized and all other letters converted to lowercase.
If the input is null, the operation returns an empty string. If the input isn't a string, the operation converts it to a string and applies proper case conversion.