📆 Don't miss our Sanity Showcase virtual meetup on March 20th!
@public
interface

LocalePluginOptions

Options that defines or adds resources to existing locales

Import

import {type LocalePluginOptions} from 'sanity'

Signature

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

Properties

bundles?: LocalesBundlesOption
bundles?: LocalesBundlesOption

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?: LocalesOption

Locales available for user selection.

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

sanity@3.79.0