"use client"; import { useState } from "react"; import { Plus, ChevronDown } from "lucide-react"; const initialLanguageValues = [ { id: 1, app: "Web Console", menu: "Tenant", screen: "Tenant List", uiKey: "btn.add_tenant", code: "EN", value: "Add Tenant", }, { id: 2, app: "Web Console", menu: "Site", screen: "Site List", uiKey: "btn.add_site", code: "EN", value: "Add Site", }, { id: 3, app: "Mobile App", menu: "Inspections", screen: "QR Round", uiKey: "lbl.scan_qr", code: "EN", value: "Scan QR to begin round", }, ]; export default function LanguagePortal() { const [languageValues, setLanguageValues] = useState(initialLanguageValues); return (
{/* --- HEADER SECTION --- */}
PLATFORM LANGUAGE

Language

Manage translation keys across apps, menus and screens — then resolve their values per tenant.

{/* --- FORM SECTION: LANGUAGE KEY MASTER --- */}

Language key master

Scope a translation key to an app, menu and screen

{/* Top Row Selects */}
{/* Bottom Row Inputs & Action Button */}
{/* --- TABLE SECTION: LANGUAGE VALUES --- */}
{/* Table Header Controls */}

Language values

Resolved strings — filtered to the selected tenant's locales

{/* Locale Tag */}
EN
{/* Data Table */}
{languageValues.map((row) => ( ))}
APP MENU SCREEN UI KEY CODE VALUE
{row.app} {row.menu} {row.screen} {row.uiKey} {row.code} {row.value}
); }