mirror of
https://github.com/shumaiOne/shumai.git
synced 2026-12-01 21:44:27 +00:00
39 lines
1.6 KiB
JavaScript
39 lines
1.6 KiB
JavaScript
/* eslint-disable */
|
|
import { getLocale, experimentalStaticLocale } from '../runtime.js'
|
|
|
|
/** @typedef {import('../runtime.js').LocalizedString} LocalizedString */
|
|
|
|
/** @typedef {{ name: NonNullable<unknown> }} Delete_Skill_ConfirmationInputs */
|
|
|
|
const en_delete_skill_confirmation =
|
|
/** @type {(inputs: Delete_Skill_ConfirmationInputs) => LocalizedString} */ (i) => {
|
|
return /** @type {LocalizedString} */ (
|
|
`This action cannot be undone. This will permanently delete the skill "${i?.name}" and all its configurations.`
|
|
)
|
|
}
|
|
|
|
const zh_delete_skill_confirmation =
|
|
/** @type {(inputs: Delete_Skill_ConfirmationInputs) => LocalizedString} */ (i) => {
|
|
return /** @type {LocalizedString} */ (
|
|
`此操作无法撤销。这将永久删除技能 "${i?.name}" 及其所有配置。`
|
|
)
|
|
}
|
|
|
|
/**
|
|
* | output |
|
|
* | --- |
|
|
* | "This action cannot be undone. This will permanently delete the skill \"{name}\" and all its configurations." |
|
|
*
|
|
* @param {Delete_Skill_ConfirmationInputs} inputs
|
|
* @param {{ locale?: "en" | "zh" }} options
|
|
* @returns {LocalizedString}
|
|
*/
|
|
export const delete_skill_confirmation =
|
|
/** @type {((inputs: Delete_Skill_ConfirmationInputs, options?: { locale?: "en" | "zh" }) => LocalizedString) & import('../runtime.js').MessageMetadata<Delete_Skill_ConfirmationInputs, { locale?: "en" | "zh" }, {}>} */ (
|
|
(inputs, options = {}) => {
|
|
const locale = experimentalStaticLocale ?? options.locale ?? getLocale()
|
|
if (locale === 'en') return en_delete_skill_confirmation(inputs)
|
|
return zh_delete_skill_confirmation(inputs)
|
|
}
|
|
)
|