mirror of
https://github.com/shumaiOne/shumai.git
synced 2026-11-24 14:09:24 +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 {{ name: NonNullable<unknown> }} Configure_SkillInputs */
|
|
|
|
const en_configure_skill = /** @type {(inputs: Configure_SkillInputs) => LocalizedString} */ (i) => {
|
|
return /** @type {LocalizedString} */ (`Configure Skill: ${i?.name}`)
|
|
};
|
|
|
|
const zh_configure_skill = /** @type {(inputs: Configure_SkillInputs) => LocalizedString} */ (i) => {
|
|
return /** @type {LocalizedString} */ (`配置技能:${i?.name}`)
|
|
};
|
|
|
|
/**
|
|
* | output |
|
|
* | --- |
|
|
* | "Configure Skill: {name}" |
|
|
*
|
|
* @param {Configure_SkillInputs} inputs
|
|
* @param {{ locale?: "en" | "zh" }} options
|
|
* @returns {LocalizedString}
|
|
*/
|
|
export const configure_skill = /** @type {((inputs: Configure_SkillInputs, options?: { locale?: "en" | "zh" }) => LocalizedString) & import('../runtime.js').MessageMetadata<Configure_SkillInputs, { locale?: "en" | "zh" }, {}>} */ ((inputs, options = {}) => {
|
|
const locale = experimentalStaticLocale ?? options.locale ?? getLocale()
|
|
if (locale === "en") return en_configure_skill(inputs)
|
|
return zh_configure_skill(inputs)
|
|
}); |