Translate Frontend Store

(cherry picked from commit d31fcbb2dfe98a540a359b98b204d101d554cf03)
This commit is contained in:
Stevie Robinson
2023-09-01 02:49:38 +02:00
committed by Bogdan
parent dee98ac46f
commit fbcf1b03c5
3 changed files with 4 additions and 2 deletions
@@ -7,6 +7,7 @@ import createSetSettingValueReducer from 'Store/Actions/Creators/Reducers/create
import { createThunk } from 'Store/thunks';
import getSectionState from 'Utilities/State/getSectionState';
import updateSectionState from 'Utilities/State/updateSectionState';
import translate from 'Utilities/String/translate';
//
// Variables
@@ -87,7 +88,7 @@ export default {
const pendingChanges = { ...item, id: 0 };
delete pendingChanges.id;
pendingChanges.name = `${pendingChanges.name} - Copy`;
pendingChanges.name = translate('DefaultNameCopiedProfile', { name: pendingChanges.name });
newState.pendingChanges = pendingChanges;
return updateSectionState(state, section, newState);