- #124 Updates an internal import to support the minor bump from
@sanity/[email protected]
- Fixed a bug in the translation maintenance refs fix where it would add all documents in refs
- Fixed an issue where the data is only copied from a published document and not from a draft document when creating a new translation
- Fixed a bug with "Delete incl translation" where it could not be removed due to references
- Fixed issue with
fixIdStructureMismatchDocuments
maintenance function
- #92 Added
engines
field inpackage.json
- #89 Added
GROQ Cheatsheet
page in docs as suggested and provided by gpoole) - #84 Allow overriding flag component for edge cases
- More accessible emoji, flat images for non-supported platforms #90
- sort 'base' to start of input tablist #91
- #88 Fixed issue where languages would not be loaded for new documents
- Updated i18n input to use
DocumentPaneContext
instead ofDocumentHistoryContext
. Keeping support for both for now to ensure compatibility for older studios. - #83 Fixed issue with singleton in
v5.3.0
- #60 Improved publish with I18n action and expose "updateIntlFieldsForDocument" action (ie to be used with custom publish action)
- #72 Updated custom delete action
- It is now possible to define a custom loader and reload function for loading languages.
- It is now possible to import all custom actions from the plugin for re-use or customization.
- The Intl plugin received a visual overhaul for better consistency with the "native" Sanity UI (thanks to SimeonGriggs)
- #58 Only disable publishing when there are errors (no warnings)
- Updated Publish with i18n with transactions to reduce webhook triggers
- Implemented maintenance operation for fixing base language fields
- #46 Publish with i18n action now takes into account validation errors
- #25 The maintenance operations now exclude draft documents
- #30 Now includes
Duplicate (Incl. translations)
action
- Updated the i18n input component to be in line with Sanity v2.x
- Export
LanguageBadge
from badges - Fixed Intl object for Sanity v2.9.x
- Include
config.dist.json
in thepackage.json
files property as it was missing from the npm package.
- Fix
referenceBehavior
not accepting the user config
- #16 Added
referenceBehavior
setting (allowing users to choose whether they want references from the parent document, to the translations) - #17 Fixed an issue where nested object types did not support the i18n field.
- #15 Fixed missing sorting menu
- Added
idStructure
setting (allowing users to choose between subpath IDs and delimiter IDs)
- Updated document list filter to include root drafts
- Added
config.dist.json
- Improved installation instructions
Breaking Change
- From V5 on the translated document ID's will change to the following structure
i18n.base-id.lang
. - A new tab was added to the desk structure called
Translation Maintenance
, which enables users to clean up and fix existing data (as well as migrate from V4 to V5) - Base documents will now contain a new field called
__i18n_refs
(by default) which is an array of references to its translations. - A new option was added to the actions of the base document to remove itself and all its translations
Updated StateLink
with IntentLink
to better support custom desk structures. (thanks to @p10e)
Breaking Change Implementing the desk structure now has to be done manually.
Added the fieldNames
option to change the names of the fields the plugin automatically injects.
At this time there is only 1 field you can change which is called lang
(by default the value of this is __i18n_lang
).