#788 - Added localization

This commit is contained in:
Elio Struyf
2024-05-23 20:13:54 +02:00
parent a70b4316f8
commit b90f2adb18
3 changed files with 6 additions and 1 deletions

View File

@@ -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.",

View File

@@ -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');

View File

@@ -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}
*/