mirror of
https://github.com/shumaiOne/shumai.git
synced 2026-12-02 05:54:44 +00:00
29 lines
1.1 KiB
JavaScript
29 lines
1.1 KiB
JavaScript
/* eslint-disable */
|
|||
|
|
import { getLocale, experimentalStaticLocale } from '../runtime.js';
|
||
|
|
|
||
|
|
/** @typedef {import('../runtime.js').LocalizedString} LocalizedString */
|
||
|
|
|
||
|
|
/** @typedef {{}} Status_ReadyInputs */
|
||
|
|
|
||
|
|
const en_status_ready = /** @type {(inputs: Status_ReadyInputs) => LocalizedString} */ () => {
|
||
|
|
return /** @type {LocalizedString} */ (`Ready`)
|
||
|
|
};
|
||
|
|
|
||
|
|
const zh_status_ready = /** @type {(inputs: Status_ReadyInputs) => LocalizedString} */ () => {
|
||
|
|
return /** @type {LocalizedString} */ (`就绪`)
|
||
|
|
};
|
||
|
|
|
||
|
|
/**
|
||
|
|
* | output |
|
||
|
|
* | --- |
|
||
|
|
* | "Ready" |
|
||
|
|
*
|
||
|
|
* @param {Status_ReadyInputs} inputs
|
||
|
|
* @param {{ locale?: "en" | "zh" }} options
|
||
|
|
* @returns {LocalizedString}
|
||
|
|
*/
|
||
|
|
export const status_ready = /** @type {((inputs?: Status_ReadyInputs, options?: { locale?: "en" | "zh" }) => LocalizedString) & import('../runtime.js').MessageMetadata<Status_ReadyInputs, { locale?: "en" | "zh" }, {}>} */ ((inputs = {}, options = {}) => {
|
||
|
|
const locale = experimentalStaticLocale ?? options.locale ?? getLocale()
|
||
|
|
if (locale === "en") return en_status_ready(inputs)
|
||
|
|
return zh_status_ready(inputs)
|
||
|
|
});
|