Skip to content

Runtime / server: createServerCatalogStore

Functions, types, and exports for Runtime / server: createServerCatalogStore.

Page outline

Deduplicates complete compiled catalog loads inside one server process.

The merged catalog is prepared once per locale generation. Request runtimes can pass the returned immutable generated catalog to their existing load() contract without rebuilding a per-message lookup object. Successful catalogs remain retained until a host invalidates their locale.

import { createServerCatalogStore } from "@palamedes/runtime/server"

createServerCatalogStore<TLocale extends string = string>(options: {
    load: ServerCatalogLoader<TLocale>;
}): ServerCatalogStore<TLocale>

Parameters

NameTypeRequired
options{ load: ServerCatalogLoader<TLocale> }Yes

Returns

ServerCatalogStore<TLocale>

Source entry on GitHub

Last updated: November 1, 2026