API reference / @localizer/core / localizeArray
Function: localizeArray()
localizeArray<
T>(values,locale):Localized<T>
Defined in: fn/localizable/localizeArray.ts:34
Localizes an array of values using the given locale.
Type Parameters
| Type Parameter | Description |
|---|---|
T extends unknown[] | Type of the array elements. |
Parameters
| Parameter | Type | Description |
|---|---|---|
values | T | Array of values to localize. |
locale | LocaleCode | null | Locale code or null for no localization. |
Returns
Localized<T>
Localized array.