Skip to content

Commit 8498814

Browse files
pavi41Pavitra Khatri
andauthored
Translation support for strings in switch (#1456)
Co-authored-by: Pavitra Khatri <pavitrakhatri@pavitras-mbp.corp.adobe.com>
1 parent 81f1f81 commit 8498814

File tree

1 file changed

+6
-6
lines changed
  • ui.af.apps/src/main/content/jcr_root/apps/core/fd/components/form/switch/v1/switch/clientlibs/editor/js

1 file changed

+6
-6
lines changed

ui.af.apps/src/main/content/jcr_root/apps/core/fd/components/form/switch/v1/switch/clientlibs/editor/js/editDialog.js

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -68,12 +68,12 @@
6868
offDataValueLabel = $($(ENUM_OPTION + ' label'))[3],
6969
offDisplayTextLabel = $($(ENUM_OPTION + ' label'))[4],
7070
offDisplayTextLabelRich = $($(ENUM_OPTION + ' label'))[5];
71-
onDataValueLabel.innerHTML = 'ON Data Value *';
72-
onDisplayTextLabel.innerHTML = 'ON Display text *';
73-
onDisplayTextLabelRich.innerHTML = 'ON Display text *';
74-
offDataValueLabel.innerHTML = 'OFF Data Value *';
75-
offDisplayTextLabel.innerHTML = 'OFF Display text *';
76-
offDisplayTextLabelRich.innerHTML = 'OFF Display text *';
71+
onDataValueLabel.innerHTML = Granite.I18n.get('ON Data Value *');
72+
onDisplayTextLabel.innerHTML = Granite.I18n.get('ON Display text *');
73+
onDisplayTextLabelRich.innerHTML = Granite.I18n.get('ON Display text *');
74+
offDataValueLabel.innerHTML = Granite.I18n.get('OFF Data Value *');
75+
offDisplayTextLabel.innerHTML = Granite.I18n.get('OFF Display text *');
76+
offDisplayTextLabelRich.innerHTML = Granite.I18n.get('OFF Display text *');
7777
}
7878

7979
Utils.initializeEditDialog(EDIT_DIALOG)(handleOffFieldVisibility, registerDialogValidator, setDataAndDisplayTextFieldLabel);

0 commit comments

Comments
 (0)