sanity-io / language-filter

A Sanity plugin that supports filtering localized fields by language
MIT License
17 stars 2 forks source link

Hide the translations fieldset if no languages are selected #28

Open re1 opened 1 year ago

re1 commented 1 year ago

When following the recommended implementation for field level translations, the translation fields are stored in a fieldset. If only the default language is selected, I expect the fieldset to be hidden, as there are no fields to be displayed.

While this can be implemented manually, I would expect this to be part of this plugin.

Screenshots

The first screenshot shows the behavior for a scenario where all (or at least one) language is selected. image

As shown below, the fieldset legend is still visible, if no fields are displayed. image

The expected behavior would be the removal of the fieldset, as demonstrated in the screenshot below. image