feat: migrate settings screen to i18n

This commit is contained in:
2024-01-29 14:57:00 +07:00
parent cfda9ba899
commit 23482531c5
18 changed files with 175 additions and 490 deletions

View File

@@ -1,10 +1,13 @@
import { useArk } from "@lume/ark";
import { LoaderIcon } from "@lume/icons";
import { useState } from "react";
import { useTranslation } from "react-i18next";
import { toast } from "sonner";
export function CoverUpload({ setBanner }) {
const ark = useArk();
const [t] = useTranslation();
const [loading, setLoading] = useState(false);
const upload = async () => {
@@ -36,7 +39,7 @@ export function CoverUpload({ setBanner }) {
{loading ? (
<LoaderIcon className="size-4 animate-spin" />
) : (
"Change cover"
t("user.coverButton")
)}
</button>
);