API reference / @localizer/transform / usePrimaryLocale
Function: usePrimaryLocale() preview
usePrimaryLocale<
T
>(value
):Localizable
<T
>
Defined in: fn/generic/usePrimaryLocale.ts:29
Transforms a Localizable value to use the primary locale.
Type Parameters
Type Parameter | Description |
---|---|
T | Type of the value in the Localizable object. |
Parameters
Parameter | Type | Description |
---|---|---|
value | Localizable <T > | The Localizable object to transform. |
Returns
Localizable
<T
>
A new Localizable object using the primary locale.