import type { RemixI18n, RemixI18nConfig } from "./types.js"; /** * Create a Remix/Hydrogen i18n instance. * * Intended to be instantiated once at module scope (singleton pattern) so that * the underlying TtlCache is shared across all requests — avoiding redundant CDN * fetches on every request. * * @example * ```ts * // app/i18n.server.ts * import { createRemixI18n } from "@better-i18n/remix"; * * export const i18n = createRemixI18n({ * project: "acme/hydrogen-store", * defaultLocale: "en", * localePrefix: "as-needed", // default — /tr/about (Turkish), /about (English) * }); * * // server.ts — use getLocaleFromRequest, not a custom helper * const locale = await i18n.getLocaleFromRequest(request); * const messages = await i18n.getMessages(locale); * ``` */ export declare function createRemixI18n(config: RemixI18nConfig): RemixI18n; //# sourceMappingURL=remix-i18n.d.ts.map