Locale Snapshot

Stops localized blocks and arrays from being wiped when saving another locale

Community 3 11/wk MIT v0.3.0

Installation

pnpm add payload-locale-snapshot

About

Locale Snapshot protects translations in Payload documents from being overwritten during an edit. When an editor saves one locale, the default database write can delete child rows for blocks and arrays in other locales, leaving only the active language behind. This plugin keeps a copy of the other locales before the save and puts them back within the same transaction, so a save either keeps every translation or fails cleanly.

It works with collections and globals that have localized fields, including nested blocks and arrays, and it covers UUID, text and numeric IDs. If a restore fails, the save is aborted by default and a JSON recovery file is written so the data can be replayed later. The plugin only applies to projects running on the PostgreSQL adapter.

Package info

Package name
payload-locale-snapshot
Latest version
0.3.0
Unpacked size
165 kB
License
MIT
Weekly downloads
11
Last publish
Oct 4, 2026

Similar plugins

More in i18n

Translates default-locale content into secondary locales with OpenAI or a custom provider

Translates localized content fields with an AI provider from the admin panel

Sends localized Payload fields to Crowdin and writes translations back

Generates and stores URL slugs per locale for localized Payload collections

Transcribes audio uploads, then translates and reads transcripts aloud

Restyles the Payload admin panel from one accent color, with a dashboard and command palette