feat(i18n): implement internationalization framework and update UI components for language support

This commit is contained in:
HouYunFei
2026-08-05 14:08:03 +08:00
parent 9bccd0ff1a
commit 0f6809251a
116 changed files with 3269 additions and 1870 deletions
+3 -1
View File
@@ -1,10 +1,12 @@
import { App } from "antd";
import copy from "copy-to-clipboard";
import { useTranslation } from "react-i18next";
export function useCopyText() {
const { message } = App.useApp();
const { t } = useTranslation();
return (value: string, successText = "已复制") => {
return (value: string, successText = t("common.copied")) => {
copy(value);
message.success(successText);
};