UNPKG

@wuchale/svelte

Version:

Protobuf-like i18n from plain code: Svelte adapter

13 lines (8 loc) 406 B
import { loadCatalog, loadIDs } from '${PROXY_SYNC}' import { currentRuntime } from 'wuchale/load-utils/server' const key = '${KEY}' export { loadCatalog, loadIDs, key } // for hooks.server.{js,ts} // for non-reactive export const getRuntime = (/** @type {string} */ loadID) => currentRuntime(key, loadID) // same function, only will be inside $derived when used export const getRuntimeRx = getRuntime