import { currentLanguageIndex, ui_locales } from "@ui/ui_template_locale"; export function L(key: keyof typeof ui_locales): string { return ui_locales[key][currentLanguageIndex]; } export function buildGroup(legend: string, collapsed = false): HTMLElement { const group = document.createElement("section"); group.className = `b06-profile__group ui-collapsible ui-sidebar-section${collapsed ? " is-collapsed" : ""}`; const title = document.createElement("h3"); title.className = "b06-profile__group-legend ui-collapsible__title"; title.textContent = legend; group.append(title); return group; }