diff options
Diffstat (limited to 'frontend/src/components/settings/index.tsx')
| -rw-r--r-- | frontend/src/components/settings/index.tsx | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/frontend/src/components/settings/index.tsx b/frontend/src/components/settings/index.tsx index 6f104710..f3a76407 100644 --- a/frontend/src/components/settings/index.tsx +++ b/frontend/src/components/settings/index.tsx @@ -1,5 +1,6 @@ import { SidebarNavigation } from 'decky-frontend-lib'; import { lazy } from 'react'; +import { useTranslation } from 'react-i18next'; import { FaCode, FaPlug } from 'react-icons/fa'; import { useSetting } from '../../utils/hooks/useSetting'; @@ -12,22 +13,23 @@ const DeveloperSettings = lazy(() => import('./pages/developer')); export default function SettingsPage() { const [isDeveloper, setIsDeveloper] = useSetting<boolean>('developer.enabled', false); + const { t } = useTranslation(); const pages = [ { - title: 'Decky', + title: t('SettingsIndex.general_title'), content: <GeneralSettings isDeveloper={isDeveloper} setIsDeveloper={setIsDeveloper} />, route: '/decky/settings/general', icon: <DeckyIcon />, }, { - title: 'Plugins', + title: t('SettingsIndex.plugins_title'), content: <PluginList />, route: '/decky/settings/plugins', icon: <FaPlug />, }, { - title: 'Developer', + title: t('SettingsIndex.developer_title'), content: ( <WithSuspense> <DeveloperSettings /> |
