Skip to content

Self-evolving Context Database for AI Agents. Unify Agent Memory, Knowledge RAG and Skills.

334 B
Raw Blame
import i18n from './core'

export function formatNumber(value: number): string {
  return value.toLocaleString(i18n.resolvedLanguage ?? i18n.language)
}

export function formatDateTime(
  value: Date,
  options?: Intl.DateTimeFormatOptions,
): string {
  return value.toLocaleString(i18n.resolvedLanguage ?? i18n.language, options)
}