Skip to content

BeechCMS


BeechCMS / @beechcms/core / compactLocalizedDictionary

Function: compactLocalizedDictionary() ​

compactLocalizedDictionary(value): LocalizedDictionary | null

Removes null / undefined / blank-string entries. Returns null when nothing remains, so an all-cleared dictionary is stored as SQL NULL rather than {}. Keys are otherwise preserved as-is — including locales no longer registered, which must never be dropped by a write (brief §2, no data loss).

Parameters ​

value ​

LocalizedDictionary

Returns ​

LocalizedDictionary | null