Skip to content

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

ParameterTypeDescription
valueLocalizableA Localizable object containing the value to be transformed. Transformation is a no-op when the result is localized to a null locale.

Returns

Localizable

A new Localizable object with the first character of the value capitalized for the specified locale.