This plugin allows to change the default site and locale, updating the translations as needed.
When changing the default locale, if the new default has translated content, this content will be used as the new fallback. The content in the old default is created as a translation.
TODO: translatable files are not updated yet. For now, this plugin only takes care of translatable text fields.
Create a backup of your database before running this plugin
The needed permission to be able to use this plugin is "Settings > Manage Sites". After installing this plugin, a new option will appear in your System Settings.
When you change the default locale to a new one, the following happens:
- The current content of the models is added as a translation in the Translate plugin tables.
- The content that was translated to the new default language is copied to the models fields, so it's used as the default/fallback value.
- The primary site is changed.
If any errors happen in this process, the details are written in the system logs and the primary site is not changed, so you can run the process again.
TODO: translatable files are not updated yet. For now, this plugin only takes care of translatable text fields.
-
This plugin has not been reviewed yet.
-
1.0.1 |
First version of Change Default Locale plugin Aug 01, 2025 |
---|