0.2.0 • Published 6 days ago

datocms-plugin-locale-duplicate v0.2.0

Weekly downloads
-
License
-
Repository
-
Last release
6 days ago

Locale Duplicate

Duplicate the content of one DatoCMS locale into another. This can be useful when you need to:

  • Migrate content from an old locale code to a new one (and optionally remove the old locale afterward).
  • Duplicate content between two similar locales (e.g., en-US and en-UK) as a starting point before making minor adjustments.

Features

  • One-click duplication of all fields from a source locale to a target locale.
  • Overwrites all fields in the target locale with the content from the source locale.

Configuration

No special configuration steps are required. Once installed, open the plugin and select:

  1. From – the source locale containing content you want to copy.
  2. To – the target locale that will receive the copied content.

Usage

  1. In the Plugins section of your DatoCMS project, open Locale Duplicate.
  2. Choose the source locale (the locale that has the content you want to duplicate).
  3. Choose the target locale (the locale that will receive the copied content).
  4. Click Duplicate locale content.
  5. You will be prompted with two confirmation steps:
    • Confirm that you truly want to duplicate the content.
    • Confirm that you understand the existing target locale content will be overwritten.
  6. Watch the progress. Once finished, you’ll see a success message.

Common Use Cases

Renaming a Locale

  1. Create a new locale in SettingsLocales (e.g., rename en-OLD to en-NEW).
  2. In the Locale Duplicate plugin, choose en-OLD as the source and en-NEW as the target.
  3. Duplicate the content.
  4. Remove the old locale (en-OLD) from SettingsLocales if desired.

Setting Up a Similar Locale

If you have a locale like en-US and want a similar locale like en-UK:

  1. Create en-UK in SettingsLocales.
  2. In the plugin, select en-US as the source and en-UK as the target.
  3. Duplicate the content.
  4. Review the new locale’s content and make any minor edits unique to that region.