Skip to content

Releases: sanity-io/document-internationalization

0.1.5

30 Mar 01:58
bdba7fa
Compare
Choose a tag to compare

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

16 Mar 23:33
Compare
Choose a tag to compare
  • Fixed an issue with filtering all:part:@sanity/desk-tool/language-select-component

0.1.3

16 Mar 23:25
Compare
Choose a tag to compare
  • 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 non i18n schemas.

0.1.2

16 Mar 23:25
Compare
Choose a tag to compare
  • Fixed import to ConfirmDeleteDialog

0.1.1

13 Mar 20:49
Compare
Choose a tag to compare

Fixes

  • #32 Fixes default and custom flag implementations

0.1.0

13 Mar 18:36
Compare
Choose a tag to compare

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 to subpath. If you are using the legacy plugin with no idStructure 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 to subpath 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 of name. 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 to strong 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