Home > @uniformdev/project-map > getActiveEdition
getActiveEdition() function
Warning: This API is now obsolete.
pre-release functionality subject to change
Finds the active edition for a given locale in an array of all editions. The active edition is the highest priority edition that enables the target locale. If there is no target locale, then the default edition is returned if there is one. Otherwise, undefined is returned (no edition matches).
Signature:
Parameters
Parameter | Type | Description |
---|---|---|
{ editions, selectEdition, selectId, selectEnabledLocales, targetLocale, } | GetActiveEditionOptions<T> |
Returns:
T | undefined