Skip to content

Commit 00591e5

Browse files
authored
Merge pull request #8856 from DavidResende0/settings-catagory-switch-label-fix
Mark Switch Labels for Translation in Settings-Category Form
2 parents 1559e98 + efb880a commit 00591e5

File tree

2 files changed

+126
-12
lines changed

2 files changed

+126
-12
lines changed

app/javascript/components/settings-category-form/schema.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,8 @@ const createSchema = (newRecord) => ({
4343
name: 'show',
4444
label: __('Show in console'),
4545
maxLength: 50,
46+
onText: __('Yes'),
47+
offText: __('No'),
4648
},
4749
{
4850
component: componentTypes.SWITCH,
@@ -52,13 +54,17 @@ const createSchema = (newRecord) => ({
5254
maxLength: 50,
5355
isDisabled: !newRecord,
5456
className: 'settings_category_single_value',
57+
onText: __('Yes'),
58+
offText: __('No'),
5559
},
5660
{
5761
component: componentTypes.SWITCH,
5862
id: 'perf_by_tag',
5963
name: 'perf_by_tag',
6064
label: __('Capture C & U Data by Tag'),
6165
maxLength: 50,
66+
onText: __('Yes'),
67+
offText: __('No'),
6268
},
6369
{
6470
component: 'plain-text',

0 commit comments

Comments
 (0)