diff --git a/l10n/bundle.l10n.json b/l10n/bundle.l10n.json index 6446021d..bb6235cb 100644 --- a/l10n/bundle.l10n.json +++ b/l10n/bundle.l10n.json @@ -727,6 +727,7 @@ "helpers.settingsHelper.readConfig.progress.title": "{0}: Reading dynamic config file...", "helpers.settingsHelper.readConfig.error": "Error reading your configuration.", "helpers.settingsHelper.refreshConfig.success": "Settings have been refreshed.", + "helpers.settingsHelper.safeUpdate.warning": "Cannot update setting \"{0}\" because you've extended or split the Front Matter CMS configuration. Please manually add your changes. Check the output for the setting update.", "helpers.taxonomyHelper.rename.input.title": "Rename the {0}", "helpers.taxonomyHelper.rename.validate.equalValue": "The new value must be different from the old one.", diff --git a/src/helpers/SettingsHelper.ts b/src/helpers/SettingsHelper.ts index 8415a01e..8a3d5dbf 100644 --- a/src/helpers/SettingsHelper.ts +++ b/src/helpers/SettingsHelper.ts @@ -398,7 +398,7 @@ export class Settings { Settings.extendedConfig.dynamic ) { Notifications.warningWithOutput( - `Cannot update setting "${configKey}" because you've extended or split the Front Matter CMS configuration. Please manually add your changes. Check the output for the setting update.` + l10n.t(LocalizationKey.helpersSettingsHelperSafeUpdateWarning, configKey) ); Logger.info(`Updating setting: ${configKey}`, 'SETTING'); diff --git a/src/localization/localization.enum.ts b/src/localization/localization.enum.ts index 33016e73..da3061a2 100644 --- a/src/localization/localization.enum.ts +++ b/src/localization/localization.enum.ts @@ -2396,6 +2396,10 @@ export enum LocalizationKey { * Settings have been refreshed. */ helpersSettingsHelperRefreshConfigSuccess = 'helpers.settingsHelper.refreshConfig.success', + /** + * Cannot update setting "{0}" because you've extended or split the Front Matter CMS configuration. Please manually add your changes. Check the output for the setting update. + */ + helpersSettingsHelperSafeUpdateWarning = 'helpers.settingsHelper.safeUpdate.warning', /** * Rename the {0} */