mirror of
https://github.com/shumaiOne/shumai.git
synced 2026-11-24 21:49:19 +00:00
29 lines
1.5 KiB
JavaScript
Generated
29 lines
1.5 KiB
JavaScript
Generated
/* eslint-disable */
|
|
import { getLocale, experimentalStaticLocale } from '../runtime.js';
|
|
|
|
/** @typedef {import('../runtime.js').LocalizedString} LocalizedString */
|
|
|
|
/** @typedef {{ name: NonNullable<unknown> }} Delete_Agent_ConfirmationInputs */
|
|
|
|
const en_delete_agent_confirmation = /** @type {(inputs: Delete_Agent_ConfirmationInputs) => LocalizedString} */ (i) => {
|
|
return /** @type {LocalizedString} */ (`This action cannot be undone. This will permanently delete the agent "${i?.name}" and remove all its data from our servers.`)
|
|
};
|
|
|
|
const zh_delete_agent_confirmation = /** @type {(inputs: Delete_Agent_ConfirmationInputs) => LocalizedString} */ (i) => {
|
|
return /** @type {LocalizedString} */ (`此操作无法撤销。这将永久删除智能体 "${i?.name}" 并从服务器上删除其所有数据。`)
|
|
};
|
|
|
|
/**
|
|
* | output |
|
|
* | --- |
|
|
* | "This action cannot be undone. This will permanently delete the agent \"{name}\" and remove all its data from our servers." |
|
|
*
|
|
* @param {Delete_Agent_ConfirmationInputs} inputs
|
|
* @param {{ locale?: "en" | "zh" }} options
|
|
* @returns {LocalizedString}
|
|
*/
|
|
export const delete_agent_confirmation = /** @type {((inputs: Delete_Agent_ConfirmationInputs, options?: { locale?: "en" | "zh" }) => LocalizedString) & import('../runtime.js').MessageMetadata<Delete_Agent_ConfirmationInputs, { locale?: "en" | "zh" }, {}>} */ ((inputs, options = {}) => {
|
|
const locale = experimentalStaticLocale ?? options.locale ?? getLocale()
|
|
if (locale === "en") return en_delete_agent_confirmation(inputs)
|
|
return zh_delete_agent_confirmation(inputs)
|
|
}); |