mirror of
https://github.com/docmost/docmost.git
synced 2025-11-17 02:21:09 +10:00
feat: update user translation
This commit is contained in:
@ -2,9 +2,7 @@ import { Group, Text, Select } from "@mantine/core";
|
||||
import { useTranslation } from "react-i18next";
|
||||
|
||||
export default function AccountLanguage() {
|
||||
const { t } = useTranslation("settings", {
|
||||
keyPrefix: "preference",
|
||||
});
|
||||
const { t } = useTranslation("user");
|
||||
|
||||
return (
|
||||
<Group justify="space-between" wrap="nowrap" gap="xl">
|
||||
@ -20,9 +18,7 @@ export default function AccountLanguage() {
|
||||
}
|
||||
|
||||
function LanguageSwitcher() {
|
||||
const { t, i18n } = useTranslation("settings", {
|
||||
keyPrefix: "preference",
|
||||
});
|
||||
const { t } = useTranslation("user");
|
||||
|
||||
const handleChange = (value: string) => {
|
||||
i18n.changeLanguage(value);
|
||||
|
||||
Reference in New Issue
Block a user