Skip to content

BeechCMS


BeechCMS / @beechcms/core / asLocaleDictionary

Function: asLocaleDictionary() ​

asLocaleDictionary(branch, value, config): unknown

The whole dictionary of a stored localized value, for readers asking every language (?lang=all): a stored dictionary as-is — unregistered locales included, nothing is hidden (brief §2) — a legacy value as { [defaultLocale]: value } (the write path's reading of it), a blank value as null. Non-localized branches return value unchanged.

Parameters ​

branch ​

Pick<Branch, "type" | "localized">

value ​

unknown

config ​

LocaleConfig

Returns ​

unknown