Files
shumai/packages/webui/paraglide/messages/all.js
T

33 lines
1011 B
JavaScript

/* eslint-disable */
import { getLocale, experimentalStaticLocale } from '../runtime.js'
/** @typedef {import('../runtime.js').LocalizedString} LocalizedString */
/** @typedef {{}} AllInputs */
const en_all = /** @type {(inputs: AllInputs) => LocalizedString} */ () => {
return /** @type {LocalizedString} */ (`All`)
}
const zh_all = /** @type {(inputs: AllInputs) => LocalizedString} */ () => {
return /** @type {LocalizedString} */ (`全部`)
}
/**
* | output |
* | --- |
* | "All" |
*
* @param {AllInputs} inputs
* @param {{ locale?: "en" | "zh" }} options
* @returns {LocalizedString}
*/
export const all =
/** @type {((inputs?: AllInputs, options?: { locale?: "en" | "zh" }) => LocalizedString) & import('../runtime.js').MessageMetadata<AllInputs, { locale?: "en" | "zh" }, {}>} */ (
(inputs = {}, options = {}) => {
const locale = experimentalStaticLocale ?? options.locale ?? getLocale()
if (locale === 'en') return en_all(inputs)
return zh_all(inputs)
}
)