wuchale
Version:
Protobuf-like i18n from plain code
10 lines (7 loc) • 367 B
JavaScript
import { loadCatalog, loadIDs } from '${PROXY_SYNC}'
import { currentRuntime } from 'wuchale/load-utils/server'
export const key = '${KEY}'
export { loadCatalog, loadIDs } // for loading before runWithLocale
// two exports, same function
export const getRuntime = (/** @type {string} */ loadID) => currentRuntime(key, loadID)
export const getRuntimeRx = getRuntime