mirror of
https://github.com/shumaiOne/shumai.git
synced 2026-11-19 14:16:29 +00:00
29 lines
1.0 KiB
JavaScript
Generated
29 lines
1.0 KiB
JavaScript
Generated
/* eslint-disable */
|
|
import { getLocale, experimentalStaticLocale } from '../runtime.js';
|
|
|
|
/** @typedef {import('../runtime.js').LocalizedString} LocalizedString */
|
|
|
|
/** @typedef {{}} ActionsInputs */
|
|
|
|
const en_actions = /** @type {(inputs: ActionsInputs) => LocalizedString} */ () => {
|
|
return /** @type {LocalizedString} */ (`Actions`)
|
|
};
|
|
|
|
const zh_actions = /** @type {(inputs: ActionsInputs) => LocalizedString} */ () => {
|
|
return /** @type {LocalizedString} */ (`操作`)
|
|
};
|
|
|
|
/**
|
|
* | output |
|
|
* | --- |
|
|
* | "Actions" |
|
|
*
|
|
* @param {ActionsInputs} inputs
|
|
* @param {{ locale?: "en" | "zh" }} options
|
|
* @returns {LocalizedString}
|
|
*/
|
|
export const actions = /** @type {((inputs?: ActionsInputs, options?: { locale?: "en" | "zh" }) => LocalizedString) & import('../runtime.js').MessageMetadata<ActionsInputs, { locale?: "en" | "zh" }, {}>} */ ((inputs = {}, options = {}) => {
|
|
const locale = experimentalStaticLocale ?? options.locale ?? getLocale()
|
|
if (locale === "en") return en_actions(inputs)
|
|
return zh_actions(inputs)
|
|
}); |