为了国际化,我使用了i18next,现在我使用 i18next for ReactJS。
1.import { useTranslation } from “react-i18next”;
2.在hooks中使用 const { t } = useTranslation();
3.在dom中嵌入
为了国际化,我使用了i18next,现在我使用 i18next for ReactJS。
1.import { useTranslation } from “react-i18next”;
2.在hooks中使用 const { t } = useTranslation();
3.在dom中嵌入