Skip to content

Commit abb1bee

Browse files
committed
Translate string IDs in CalendarFeedType.template
1 parent 265af91 commit abb1bee

File tree

1 file changed

+7
-9
lines changed

1 file changed

+7
-9
lines changed
Lines changed: 7 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,22 @@
11
import { React } from "react";
22
import PropTypes from "prop-types";
3+
import { useTranslation } from "react-i18next";
34
import FormInput from "../../util/forms/form-input";
45

5-
const CalendarFeedTypeTemplate = ({
6-
handleInput,
7-
formStateObject,
8-
t,
9-
mode,
10-
}) => {
6+
const CalendarFeedTypeTemplate = ({ handleInput, formStateObject, mode }) => {
7+
const { t } = useTranslation("common", {
8+
keyPrefix: "feed-source-manager.dynamic-fields.calendar-api-feed-type",
9+
});
1110
return (
1211
<>
1312
<FormInput
1413
name="resources"
1514
type="text"
16-
label={t("dynamic-fields.CalendarApiFeedType.resources")}
15+
label={t("resources")}
1716
onChange={handleInput}
1817
placeholder={
1918
mode === "PUT"
20-
? t("dynamic-fields.redactedValueInputPlaceholder")
19+
? t("redacted-value-input-placeholder")
2120
: ""
2221
}
2322
value={formStateObject.resources}
@@ -31,7 +30,6 @@ CalendarFeedTypeTemplate.propTypes = {
3130
formStateObject: PropTypes.shape({
3231
resources: PropTypes.string,
3332
}),
34-
t: PropTypes.func,
3533
mode: PropTypes.string,
3634
};
3735
export default CalendarFeedTypeTemplate;

0 commit comments

Comments
 (0)