Sanity Library Reference Docs
    Preparing search index...

    Interface LocalePluginOptions

    Options that defines or adds resources to existing locales

    interface LocalePluginOptions {
        bundles?: LocalesBundlesOption;
        locales?: LocalesOption;
    }
    Index

    Properties

    Properties

    Bundles contain "resources" (strings) that yields translations for different locales throughout the studio. The strings are scoped to a specific locale and namespace. Namespaces in this context usually means a specific part of the studio, like a tool or plugin.

    locales?: LocalesOption

    Locales available for user selection.

    Titles and icons can be changed by using a function (reducer pattern) and transforming values.