feat: add typeScript support to enforce valid translation keys (#1954)

* #1952 Fix incorrect localization key for sign-up failure message

* feat: add typeScript support to enforce valid translation keys

* feat: add typeScript support to enforce valid translation keys

* fix lint errors

* fix lint error
This commit is contained in:
Ajay Kumbhare
2023-07-15 07:57:37 +05:30
committed by GitHub
parent 5e20094386
commit 1780225da5
58 changed files with 148 additions and 125 deletions

View File

@ -1,6 +1,6 @@
import { useEffect, useRef, useState } from "react";
import { toast } from "react-hot-toast";
import { useTranslation } from "react-i18next";
import { useTranslate } from "@/utils/i18n";
import { useFilterStore, useMemoStore, useShortcutStore, useUserStore } from "@/store/module";
import { TAG_REG, LINK_REG, PLAIN_LINK_REG } from "@/labs/marked/parser";
import { getTimeStampByDate } from "@/helpers/datetime";
@ -11,7 +11,7 @@ import Memo from "./Memo";
import "@/less/memo-list.less";
const MemoList = () => {
const { t } = useTranslation();
const t = useTranslate();
const memoStore = useMemoStore();
const userStore = useUserStore();
const shortcutStore = useShortcutStore();