Releases: sanity-io/document-internationalization
Releases · sanity-io/document-internationalization
0.1.5
Fixes
Don't override child
resolver as it is not required anymore. This way it will correctly fallback on the Studio's structure definition
0.1.4
- Fixed an issue with filtering
all:part:@sanity/desk-tool/language-select-component
0.1.3
- The plugin will not show the language dropdown anymore for schemas that do not have
i18n
enabled. This version also brings support for the@sanity/language-filter
plugin for noni18n
schemas.
0.1.2
- Fixed import to
ConfirmDeleteDialog
0.1.1
0.1.0
This is the first stable release for the official document internationalization plugin. A few things have changed since the original plugin. For a migration guide please see this guide.
Breaking Changes
- Object level translations are not supported by this plugin anymore. If your project requires this please use the @sanity/language-filter plugin.
delimiter
is now the default ID structure as opposed tosubpath
. If you are using the legacy plugin with noidStructure
specified you will need to make sure to configure it explicitly in this version. Coming from the old version you will need to set it tosubpath
to keep your current structure.- It is not possible anymore to override the UI messages using plugin configuration.
- The language configuration has been updated to use an
id
field instead ofname
. This change was made to align with the@sanity/language-filter
plugin. You will need to update your language configuration if you are coming from the old plugin. - The
hard
reference behavior configuration has been renamed tostrong
to be more consistent with Sanity itself. - The
__i18n_refs
field will now be a simple array of rerences as opposed to an array of custom objects. They are keyed by their language code for easier querying.
Fixes
- Fixed issue with
fixIdStructureMismatchDocuments
maintenance function - Fixed a bug with the
fixBaseLanguageMismatch
method as it was not considering the field name configuration - #124 Updates an internal import to support the minor bump from
@sanity/[email protected]
Other Changes
- Added a slug uniqueness validator for document level translations (
import { isSlugUnique } from '@sanity/document-internationalization/lib/validators
) - A maintenance function was created to add base document refs to translated documents