mergeLocales() function
This API is provided as a beta preview for developers and may change based on feedback that we receive. Do not use this API in a production environment.
Utility function for custom functions. Merge the locales set for the message, an options
property on the input, and the locale
option of the expression.
Signature:
export declare function mergeLocales(locales: string[], input: unknown, options: Record<string, unknown> | null): string[];
Parameters
Parameter | Type | Description |
---|---|---|
locales | string[] | |
input | unknown | |
options | Record<string, unknown> | null |
Returns:
string[]