Skip to content
This repository was archived by the owner on Jun 29, 2025. It is now read-only.

Commit 7f0c31c

Browse files
committed
feat: add note to language picker
1 parent f4c88ae commit 7f0c31c

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

frontend/src/components/account/LanguagePicker.tsx

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,11 @@
11
import { Select } from "@mantine/core";
22
import { getCookie, setCookie } from "cookies-next";
33
import { useState } from "react";
4+
import useTranslate from "../../hooks/useTranslate.hook";
45
import { LOCALES } from "../../i18n/locales";
56

67
const LanguagePicker = () => {
8+
const t = useTranslate();
79
const [selectedLanguage, setSelectedLanguage] = useState(
810
getCookie("language")?.toString()
911
);
@@ -15,6 +17,7 @@ const LanguagePicker = () => {
1517
return (
1618
<Select
1719
value={selectedLanguage}
20+
description={t("account.card.language.description")}
1821
onChange={(value) => {
1922
setSelectedLanguage(value ?? "en");
2023
setCookie("language", value, {

frontend/src/i18n/translations/en-US.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -100,6 +100,8 @@ export default {
100100
"account.notify.totp.enable": "TOTP enabled successfully",
101101

102102
"account.card.language.title": "Language",
103+
"account.card.language.description":
104+
"The project is translated by the community. Some languages might be incomplete.",
103105
"account.card.color.title": "Color scheme",
104106

105107
// ThemeSwitcher.tsx

0 commit comments

Comments
 (0)