Implemented project-wide localization plumbing and converted the visible UI/app messages to translation-ready strings.

This commit is contained in:
2026-05-18 00:16:37 +03:30
parent b49b59a056
commit c6606d9602
60 changed files with 1376 additions and 345 deletions

View File

@@ -8,6 +8,7 @@ import {
} from '@/components/ui/dropdown-menu';
import { UserInfo } from '@/components/user-info';
import { useMobileNavigation } from '@/hooks/use-mobile-navigation';
import { useTranslation } from '@/lib/translations';
import { logout } from '@/routes';
import { edit } from '@/routes/profile';
import type { User } from '@/types';
@@ -18,6 +19,7 @@ type Props = {
export function UserMenuContent({ user }: Props) {
const cleanup = useMobileNavigation();
const { t } = useTranslation();
const handleLogout = () => {
cleanup();
@@ -41,7 +43,7 @@ export function UserMenuContent({ user }: Props) {
onClick={cleanup}
>
<Settings className="mr-2" />
Settings
{t('Settings')}
</Link>
</DropdownMenuItem>
</DropdownMenuGroup>
@@ -55,7 +57,7 @@ export function UserMenuContent({ user }: Props) {
data-test="logout-button"
>
<LogOut className="mr-2" />
Log out
{t('Log out')}
</Link>
</DropdownMenuItem>
</>