mirror of
https://github.com/arc53/DocsGPT.git
synced 2025-11-30 17:13:15 +00:00
(fix:locales) sync static text
This commit is contained in:
@@ -19,9 +19,12 @@ import Prompts from './Prompts';
|
||||
export default function General() {
|
||||
const {
|
||||
t,
|
||||
i18n: { changeLanguage, language },
|
||||
i18n: { changeLanguage },
|
||||
} = useTranslation();
|
||||
const themes = ['Light', 'Dark'];
|
||||
const themes = [
|
||||
{ value: 'Light', label: t('settings.general.light') },
|
||||
{ value: 'Dark', label: t('settings.general.dark') },
|
||||
];
|
||||
|
||||
const languageOptions = [
|
||||
{
|
||||
@@ -104,10 +107,12 @@ export default function General() {
|
||||
</p>
|
||||
<Dropdown
|
||||
options={themes}
|
||||
selectedValue={selectedTheme}
|
||||
onSelect={(option: string) => {
|
||||
setSelectedTheme(option);
|
||||
option !== selectedTheme && toggleTheme();
|
||||
selectedValue={
|
||||
themes.find((theme) => theme.value === selectedTheme) || null
|
||||
}
|
||||
onSelect={(option: { value: string; label: string }) => {
|
||||
setSelectedTheme(option.value);
|
||||
option.value !== selectedTheme && toggleTheme();
|
||||
}}
|
||||
size="w-56"
|
||||
rounded="3xl"
|
||||
|
||||
Reference in New Issue
Block a user