mirror of
https://github.com/Prowlarr/Prowlarr.git
synced 2025-04-24 05:47:22 -04:00
Translate Frontend Store
(cherry picked from commit d31fcbb2dfe98a540a359b98b204d101d554cf03)
This commit is contained in:
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);
|
||||
|
|
|
@ -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…
Add table
Add a link
Reference in a new issue