feat(i18n) : add personal languages and compact weapon exports
CI / Verify (push) Successful in 1m18s
CI / Build immutable images and deploy (push) Successful in 1m57s

This commit is contained in:
2026-09-14 16:44:44 +07:00 Unverified
parent f214d330f0
commit e0794822b1
72 changed files with 4199 additions and 1011 deletions
+3 -1
View File
@@ -1,5 +1,6 @@
"use client";
import { useTranslation } from "@/components/i18n/locale-provider";
import type { ComponentProps, ReactNode } from "react";
import { Tooltip, TooltipContent, TooltipTrigger } from "@/components/ui/tooltip";
@@ -13,12 +14,13 @@ export function SimpleTooltip({
side?: "top" | "right" | "bottom" | "left" | undefined;
children: ReactNode;
} & Omit<ComponentProps<typeof Tooltip>, "children">) {
const { t } = useTranslation();
return (
<Tooltip {...props}>
<TooltipTrigger render={<span className="inline-flex" />}>
{children}
</TooltipTrigger>
<TooltipContent side={side}>{text}</TooltipContent>
<TooltipContent side={side}>{typeof text === "string" ? t(text) : text}</TooltipContent>
</Tooltip>
);
}