0.2.0 • Published 6 days ago
datocms-plugin-locale-duplicate v0.2.0
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
anden-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:
- From – the source locale containing content you want to copy.
- To – the target locale that will receive the copied content.
Usage
- In the Plugins section of your DatoCMS project, open Locale Duplicate.
- Choose the source locale (the locale that has the content you want to duplicate).
- Choose the target locale (the locale that will receive the copied content).
- Click Duplicate locale content.
- 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.
- Watch the progress. Once finished, you’ll see a success message.
Common Use Cases
Renaming a Locale
- Create a new locale in Settings → Locales (e.g., rename
en-OLD
toen-NEW
). - In the Locale Duplicate plugin, choose
en-OLD
as the source anden-NEW
as the target. - Duplicate the content.
- Remove the old locale (
en-OLD
) from Settings → Locales if desired.
Setting Up a Similar Locale
If you have a locale like en-US
and want a similar locale like en-UK
:
- Create
en-UK
in Settings → Locales. - In the plugin, select
en-US
as the source anden-UK
as the target. - Duplicate the content.
- Review the new locale’s content and make any minor edits unique to that region.