Skip to content

gt-sanity@3.1.0

Choose a tag to compare

@github-actions github-actions released this 28 Jul 23:44
· 25 commits to main since this release
3831c60

Minor Changes

  • #1997 d614ee0 Thanks @fernando-aviles! - Add opt-in preservation of human-edited translations. With the new Save local edits toggle enabled, the translations Sanity already holds are uploaded to General Translation before a translation run, so content whose source text did not change keeps its existing wording instead of being regenerated. Translated documents (via translation.metadata, preferring drafts) and internationalized-array locale values are both covered.

    The toggle is off by default and shows an explanation before it can be enabled — turning it on means local content overwrites whatever General Translation holds for that source version, including a completed translation that has not been imported yet. Its initial state can be set with the preserveExistingTranslations plugin option.

    Also adds a Save Local Edits action, which uploads the translations already in Sanity (seeding source files as needed) without enqueueing a translation, and a Retranslate from scratch option in the Translate All dialog for deliberately regenerating translations — the plugin previously had no way to force a retranslation.

Patch Changes

  • #1889 29cd6b8 Thanks @bgub! - Allow awaitJobs() to poll job IDs directly and reuse that shared polling implementation for CLI and Sanity project setup.

  • Updated dependencies [29cd6b8]:

    • generaltranslation@9.0.5