Translate Frontend Store

(cherry picked from commit d31fcbb2dfe98a540a359b98b204d101d554cf03)
pull/1850/head
Stevie Robinson 1 year ago committed by Bogdan
parent dee98ac46f
commit fbcf1b03c5

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

@ -210,7 +210,7 @@ export const reducers = createHandleActions({
// Set the name in pendingChanges
newState.pendingChanges = {
name: `${item.name} - Copy`
name: translate('DefaultNameCopiedProfile', { name: item.name })
};
return updateSectionState(state, section, newState);

@ -131,6 +131,7 @@
"Database": "Database",
"Date": "Date",
"Dates": "Dates",
"DefaultNameCopiedProfile": "{name} - Copy",
"Delete": "Delete",
"DeleteAppProfile": "Delete App Profile",
"DeleteAppProfileMessageText": "Are you sure you want to delete the app profile '{name}'?",

Loading…
Cancel
Save