API reference / @localizer/transform / capitalize
Function: capitalize()
capitalize(
value
):Localizable
Defined in: fn/string/capitalize.ts:29
Capitalizes the first character of the localized value for a given locale.
Parameters
Parameter | Type | Description |
---|---|---|
value | Localizable | A Localizable object containing the value to be transformed. Transformation is a no-op when the result is localized to a null locale. |
Returns
A new Localizable object with the first character of the value capitalized for the specified locale.