/* eslint-disable */ import { getLocale, experimentalStaticLocale } from '../runtime.js'; /** @typedef {import('../runtime.js').LocalizedString} LocalizedString */ /** @typedef {{}} PreviewInputs */ const en_preview = /** @type {(inputs: PreviewInputs) => LocalizedString} */ () => { return /** @type {LocalizedString} */ (`Preview`) }; const zh_preview = /** @type {(inputs: PreviewInputs) => LocalizedString} */ () => { return /** @type {LocalizedString} */ (`预览`) }; /** * | output | * | --- | * | "Preview" | * * @param {PreviewInputs} inputs * @param {{ locale?: "en" | "zh" }} options * @returns {LocalizedString} */ export const preview = /** @type {((inputs?: PreviewInputs, options?: { locale?: "en" | "zh" }) => LocalizedString) & import('../runtime.js').MessageMetadata} */ ((inputs = {}, options = {}) => { const locale = experimentalStaticLocale ?? options.locale ?? getLocale() if (locale === "en") return en_preview(inputs) return zh_preview(inputs) });