mirror of
https://github.com/shumaiOne/shumai.git
synced 2026-11-24 18:07:17 +00:00
29 lines
1.2 KiB
JavaScript
Generated
29 lines
1.2 KiB
JavaScript
Generated
/* eslint-disable */
|
|
import { getLocale, experimentalStaticLocale } from '../runtime.js';
|
|
|
|
/** @typedef {import('../runtime.js').LocalizedString} LocalizedString */
|
|
|
|
/** @typedef {{}} Create_New_VersionInputs */
|
|
|
|
const en_create_new_version = /** @type {(inputs: Create_New_VersionInputs) => LocalizedString} */ () => {
|
|
return /** @type {LocalizedString} */ (`Create new version`)
|
|
};
|
|
|
|
const zh_create_new_version = /** @type {(inputs: Create_New_VersionInputs) => LocalizedString} */ () => {
|
|
return /** @type {LocalizedString} */ (`创建新版本`)
|
|
};
|
|
|
|
/**
|
|
* | output |
|
|
* | --- |
|
|
* | "Create new version" |
|
|
*
|
|
* @param {Create_New_VersionInputs} inputs
|
|
* @param {{ locale?: "en" | "zh" }} options
|
|
* @returns {LocalizedString}
|
|
*/
|
|
export const create_new_version = /** @type {((inputs?: Create_New_VersionInputs, options?: { locale?: "en" | "zh" }) => LocalizedString) & import('../runtime.js').MessageMetadata<Create_New_VersionInputs, { locale?: "en" | "zh" }, {}>} */ ((inputs = {}, options = {}) => {
|
|
const locale = experimentalStaticLocale ?? options.locale ?? getLocale()
|
|
if (locale === "en") return en_create_new_version(inputs)
|
|
return zh_create_new_version(inputs)
|
|
}); |