From 41dcf32e24119eeb24de84791129ee08e3547b25 Mon Sep 17 00:00:00 2001 From: Bogdan Date: Wed, 25 Sep 2024 02:21:02 +0300 Subject: [PATCH] Fix translations for MovieMonitoredSelectInput --- .../Form/MovieMonitoredSelectInput.js | 17 +++++++++++------ 1 file changed, 11 insertions(+), 6 deletions(-) diff --git a/frontend/src/Components/Form/MovieMonitoredSelectInput.js b/frontend/src/Components/Form/MovieMonitoredSelectInput.js index 9cf919c4a..b8401e961 100644 --- a/frontend/src/Components/Form/MovieMonitoredSelectInput.js +++ b/frontend/src/Components/Form/MovieMonitoredSelectInput.js @@ -5,17 +5,20 @@ import translate from 'Utilities/String/translate'; import EnhancedSelectInput from './EnhancedSelectInput'; function MovieMonitoredSelectInput(props) { - const values = [...monitorOptions]; - const { includeNoChange, - includeMixed + includeMixed, + ...otherProps } = props; + const values = [...monitorOptions]; + if (includeNoChange) { values.unshift({ key: 'noChange', - value: translate('NoChange'), + get value() { + return translate('NoChange'); + }, isDisabled: true }); } @@ -23,14 +26,16 @@ function MovieMonitoredSelectInput(props) { if (includeMixed) { values.unshift({ key: 'mixed', - value: '(Mixed)', + get value() { + return `(${translate('Mixed')})`; + }, isDisabled: true }); } return ( );