/** Replace `{{key}}` placeholders (server i18n; keep keys ASCII). */
export function formatI18n(template: string, vars: Record<string, string | number>): string {
  let out = template;
  for (const [k, v] of Object.entries(vars)) {
    out = out.split(`{{${k}}}`).join(String(v));
  }
  return out;
}
