sanity-io / language-filter

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

Plugin has no effect #65

Open patrulea opened 2 weeks ago

patrulea commented 2 weeks ago

It’s my first time implementing this plugin and I don’t know if there’s any configuration missing in my code. The toggle shows up in every document by default (I already tried setting them explicitly in the plugin configuration and each document’s options) but the language keys are not being filtered.

// sanity.config.js
// […]
    languageFilter({
      supportedLanguages: [
        {
          id: "en",
          title: "English"
        },
        {
          id: "es",
          title: "Spanish"
        }
      ],
      defaultLanguages: [
        "en"
      ]
    })
// […]

Screenshots

image

Versions

@sanity/cli (global)          3.47.1 (up to date)
@sanity/eslint-config-studio   4.0.0 (up to date)
@sanity/icons                  3.2.0 (up to date)
@sanity/language-filter        4.0.2 (up to date)
@sanity/vision                3.47.1 (up to date)
sanity                        3.47.1 (up to date)
patrulea commented 2 weeks ago

Related: #63