feat: add typescript support to i18next

This commit is contained in:
Tristan Yang
2022-11-25 11:28:00 +08:00
parent 79832fefe3
commit 48a529e5d6
25 changed files with 136 additions and 54 deletions
@@ -33,8 +33,8 @@ const DeleteConfirmModal: FC<Props> = ({ id, closeModal }) => {
<Modal id="modal-modal">
<StyledModal
className="compact"
title={t("channel.delete") || ""}
description={t("channel.delete_desc") || ""}
title={t("channel.delete")}
description={t("channel.delete_desc")}
buttons={
<>
<Button onClick={closeModal.bind(null, undefined)} className="cancel">
+2 -2
View File
@@ -133,7 +133,7 @@ export default function Overview({ id = 0 }) {
value={name}
name="name"
id="name"
placeholder={t("name") || ""}
placeholder={t("name")}
/>
</div>
<div className="input">
@@ -146,7 +146,7 @@ export default function Overview({ id = 0 }) {
rows={4}
name="name"
id="name"
placeholder={t("topic_placeholder") || ""} />
placeholder={t("topic_placeholder")} />
</div>
{!readOnly && <div className="input">
<Label htmlFor="desc">{t("visibility")}</Label>