Implemented project-wide localization plumbing and converted the visible UI/app messages to translation-ready strings.
This commit is contained in:
@@ -5,6 +5,7 @@ import Heading from '@/components/heading';
|
||||
import { Button } from '@/components/ui/button';
|
||||
import { Separator } from '@/components/ui/separator';
|
||||
import { useCurrentUrl } from '@/hooks/use-current-url';
|
||||
import { useTranslation } from '@/lib/translations';
|
||||
import { cn, toUrl } from '@/lib/utils';
|
||||
import { edit as editAppearance } from '@/routes/appearance';
|
||||
import { edit } from '@/routes/profile';
|
||||
@@ -31,6 +32,7 @@ const sidebarNavItems: NavItem[] = [
|
||||
|
||||
export default function SettingsLayout({ children }: PropsWithChildren) {
|
||||
const { isCurrentOrParentUrl } = useCurrentUrl();
|
||||
const { t } = useTranslation();
|
||||
|
||||
return (
|
||||
<div className="px-4 py-6">
|
||||
@@ -43,7 +45,7 @@ export default function SettingsLayout({ children }: PropsWithChildren) {
|
||||
<aside className="w-full max-w-xl lg:w-48">
|
||||
<nav
|
||||
className="flex flex-col space-y-1 space-x-0"
|
||||
aria-label="Settings"
|
||||
aria-label={t('Settings')}
|
||||
>
|
||||
{sidebarNavItems.map((item, index) => (
|
||||
<Button
|
||||
|
||||
Reference in New Issue
Block a user