mirror of
https://github.com/shumaiOne/shumai.git
synced 2026-11-24 17:47:14 +00:00
29 lines
1.1 KiB
JavaScript
Generated
29 lines
1.1 KiB
JavaScript
Generated
/* eslint-disable */
|
|
import { getLocale, experimentalStaticLocale } from '../runtime.js';
|
|
|
|
/** @typedef {import('../runtime.js').LocalizedString} LocalizedString */
|
|
|
|
/** @typedef {{ count: NonNullable<unknown> }} N_Models_CountInputs */
|
|
|
|
const en_n_models_count = /** @type {(inputs: N_Models_CountInputs) => LocalizedString} */ (i) => {
|
|
return /** @type {LocalizedString} */ (`${i?.count} Models`)
|
|
};
|
|
|
|
const zh_n_models_count = /** @type {(inputs: N_Models_CountInputs) => LocalizedString} */ (i) => {
|
|
return /** @type {LocalizedString} */ (`${i?.count} 个模型`)
|
|
};
|
|
|
|
/**
|
|
* | output |
|
|
* | --- |
|
|
* | "{count} Models" |
|
|
*
|
|
* @param {N_Models_CountInputs} inputs
|
|
* @param {{ locale?: "en" | "zh" }} options
|
|
* @returns {LocalizedString}
|
|
*/
|
|
export const n_models_count = /** @type {((inputs: N_Models_CountInputs, options?: { locale?: "en" | "zh" }) => LocalizedString) & import('../runtime.js').MessageMetadata<N_Models_CountInputs, { locale?: "en" | "zh" }, {}>} */ ((inputs, options = {}) => {
|
|
const locale = experimentalStaticLocale ?? options.locale ?? getLocale()
|
|
if (locale === "en") return en_n_models_count(inputs)
|
|
return zh_n_models_count(inputs)
|
|
}); |