added lang param to api

This commit is contained in:
Jelaletdin12
2026-10-25 00:30:50 +05:00
parent 11903e23bf
commit 524733ad9f
50 changed files with 798 additions and 361 deletions

View File

@@ -102,11 +102,12 @@ export function InfoRow({ label, value, children, isLink, href }: InfoRowProps)
export interface MultiLangRowProps {
label: string;
value?: { tm?: string; tk?: string; ru?: string; en?: string } | null;
value?: { tm?: string; tk?: string; ru?: string; en?: string } | string | null;
}
export function MultiLangRow({ label, value }: MultiLangRowProps) {
if (!value) return <InfoRow label={label} value="—" />;
if (typeof value === "string") return <InfoRow label={label} value={value} />;
const langs = [
{ code: "TK", val: value.tm ?? value.tk },