webpack/components/NewTemplateSync/components/SyncSettingField.js in foreman_templates-9.3.3 vs webpack/components/NewTemplateSync/components/SyncSettingField.js in foreman_templates-9.4.0
- old
+ new
@@ -1,14 +1,15 @@
import React from 'react';
import PropTypes from 'prop-types';
import { FieldLevelHelp } from 'patternfly-react';
+import { translate as __ } from 'foremanReact/common/I18n';
import TextButtonField from './TextButtonField';
import ButtonTooltip from './ButtonTooltip';
const SyncSettingField = ({ setting, resetField, disabled, syncType }) => {
- const label = settingObj => `${settingObj.fullName} `;
+ const label = settingObj => `${__(settingObj.fullName)} `;
const fieldSelector = settingObj => {
if (settingObj.settingsType === 'boolean') {
return 'checkbox';
}
@@ -21,10 +22,10 @@
};
const tooltipContent = (
<div
dangerouslySetInnerHTML={{
- __html: setting.description,
+ __html: __(setting.description),
}}
/>
);
return (