@welldot/core

formatVocabList

Comma-separated labels of a multi-valued field (e.g. wellpurpose) in locale. Values with no entry are kept as-is.

formatVocabList(vocab, values, locale): string

Comma-separated labels of a multi-valued field (e.g. well_purpose) in locale. Values with no entry are kept as-is.

Parameters

vocab

readonly VocabEntry<string>

values

readonly string | undefined

locale

string

Returns

string