This repository was archived by the owner on Jun 29, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +5
-0
lines changed
Expand file tree Collapse file tree 2 files changed +5
-0
lines changed Original file line number Diff line number Diff line change 11import { Select } from "@mantine/core" ;
22import { getCookie , setCookie } from "cookies-next" ;
33import { useState } from "react" ;
4+ import useTranslate from "../../hooks/useTranslate.hook" ;
45import { LOCALES } from "../../i18n/locales" ;
56
67const 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 , {
Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments