(fix:locales) sync static text

This commit is contained in:
ManishMadan2882
2025-01-16 18:24:27 +05:30
parent cbcb717aee
commit cc78ea7222
14 changed files with 383 additions and 163 deletions

View File

@@ -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"